Relative Content

Tag Archive for templates

Differences between HTML templating systems

I’m looking at backbone.js and noticed that it supports various templating systems (they specifically refer to Mustache.js, Haml-js, and Eco, but I understand it can support even more)(like Pure and dust.js)

Convert plain text to a pdf template

I have some articles (more than 200 pages) in plain text. It needs to be converted to an given PDF markup. I got some Photoshop files for the headers for every page and a list of requirements for the different elements.

Why should I use a web framework’s template language over python’s templating options?

I’m coming from a python CGI background and was wanting to move into something more contemporary and think I have decided upon web.py as the framework I would like to use. In regards to templating, previously I used formatted strings and the string.Template module to effect most of my templating needs. After reading through a few of the templating options I have heard mentioned, I began wondering what the main benefits of using something like the Django or jinja templating options over “native” Python templating options were? Am I just going to be replacing $tmpl_var with {{ tmpl_var }} and s.substitute(tmpl_var=value) with t.render(s), i.e., alternate syntax? or will I gain additional advantages from using these templating systems?

Why does flask use Jinja2 and not xpath?

I’m just starting out with python and since I’m coming from a PHP background (thus have to adjust my mind to wrap around new concepts) one major question still stands without answer – why does Flask need a template engine?