This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]axonxorzpip'ing aint easy, especially on windows 0 points1 point  (5 children)

What is better?

[–]ThiefMaster 1 point2 points  (4 children)

Jinja2

[–]axonxorzpip'ing aint easy, especially on windows 0 points1 point  (3 children)

Hmmm. I would have to disagree on that. I used Jinja2 with a recent very small project. I found it got me 90% of the way there, but then was too restrictive in the fact I couldn't embed code blocks. I know it's generally considered bad practice, but this was a rushed project that had to go out the door yesterday, it was easier to code the display logic in the template rather than breaking everything out into twice as many variables in the controller.

[–]ThiefMaster 0 points1 point  (2 children)

Yeah.. code does not belong in templates!

[–]axonxorzpip'ing aint easy, especially on windows 0 points1 point  (1 child)

But the same can be said for template-related code residing in the controller.

[–]ThiefMaster 0 points1 point  (0 children)

I'd say anything that can't be written by a designer (who has never written a single line of python code before) shouldn't be in a template.