Wouldn't JUST patterns suffice without Python inline code?
Only if your template language has sufficient logical functionality is, in fact, the scripting language itself. At this point, you could also use Python.
More involved sites often require complex presentation logic and non-trivial template structures, such as sections repeating in different places / pages and recursive trees. It is not fun if your template language binds your hands behind your back, because it takes a religious position that is "code in a BAD template."
Then you just finish writing presentation helper functions in your Python business logic, which is the worst combination of presentation logic and application you had to get started. Languages ββthat take power away from you because they do not trust you to use it with taste are lame.
bobince
source share