Popular Python recipes tagged "templating"http://code.activestate.com/recipes/langs/python/tags/templating/2014-02-19T12:53:03-08:00ActiveState Code RecipesString templates with adaptive indenting (Python)
2014-02-19T12:53:03-08:00Sander Evershttp://code.activestate.com/recipes/users/4173111/http://code.activestate.com/recipes/578835-string-templates-with-adaptive-indenting/
<p style="color: grey">
Python
recipe 578835
by <a href="/recipes/users/4173111/">Sander Evers</a>
(<a href="/recipes/tags/formatter/">formatter</a>, <a href="/recipes/tags/indent/">indent</a>, <a href="/recipes/tags/templating/">templating</a>).
</p>
<p>An extension of Python's <code>'Hello {fieldname}!'.format(fieldname='world')</code> functionality for multi-line strings. When <code>{fieldname}</code> is indented, all the lines in the inserted <code>fieldvalue</code> are indented to the same amount.</p>
HTML template animation built on PyQuery (Python)
2011-12-13T18:49:46-08:00Graham Poulterhttp://code.activestate.com/recipes/users/4172291/http://code.activestate.com/recipes/577983-html-template-animation-built-on-pyquery/
<p style="color: grey">
Python
recipe 577983
by <a href="/recipes/users/4172291/">Graham Poulter</a>
(<a href="/recipes/tags/templating/">templating</a>).
Revision 2.
</p>
<p>The beginnings of a class for "animating" plain HTML to produce a dynamic HTML output as an alternative to a templating language. It's inspired by Ruby's hquery library, which describes itself as "unobtrusive server scripting".</p>
Templite+ (Python)
2009-02-28T04:44:46-08:00Thimo Kraemerhttp://code.activestate.com/recipes/users/4169283/http://code.activestate.com/recipes/576663-templite/
<p style="color: grey">
Python
recipe 576663
by <a href="/recipes/users/4169283/">Thimo Kraemer</a>
(<a href="/recipes/tags/template/">template</a>, <a href="/recipes/tags/templating/">templating</a>, <a href="/recipes/tags/text/">text</a>).
Revision 13.
</p>
<p>Revised version of <a href="http://code.activestate.com/recipes/496702/">Templite</a>, a light-weight, fully functional, general purpose templating engine</p>