Popular recipes tagged "templating" but not "text"http://code.activestate.com/recipes/tags/templating-text/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>