A `loop` directive in Python templates

You know what a Python-based templating language needs? A loop directive. What would the difference be between for and loop? The difference would be in scoping. The loop directive would have block level scoping. It would have access to the outer scope, but any variables set within the inner scope would only affect the inner … Continue reading A `loop` directive in Python templates

Janky template revelations: Reassessing Project Lightbeam’s goals

I'm still thinking about templating languages in Python. I dislike all of them. Great templating is the core of a great CMS, and I don't think great templating is available in Python right now. Having peaked under the hood at a few Python libraries recently, I'm also fairly confident that it's something I don't want … Continue reading Janky template revelations: Reassessing Project Lightbeam’s goals

Early challenges with Mako templates

One of the things I want most in a web framework or CMS is a good way to build templates. Unfortunately every templating language has their strengths and weaknesses. Templating languages Templates are deceptively hard to get right. There are different philosophies. Django uses Django templates, which is very similar to Jinja2. These don't allow … Continue reading Early challenges with Mako templates