djangosnippets.org: Latest snippets tagged with 'ssi'https://djangosnippets.org/tags/ssi/2010-07-11T23:03:49.420317-05:00Partial Tag
2010-07-11T23:03:49.420317-05:00mnbayazithttps://djangosnippets.org/snippets/2104/<p>Lets you include another template and pass in named variables. Use like:
</p>
<pre><code>{% partial field_template field=form.city %}
</code></pre><p>If no key is specified, it will use "item" instead. You may pass in multiple variables as comma-separated key=value pairs.
</p>
Freely redistributableDjango Template "include_raw" tag
2009-08-13T15:42:25.831712-05:00wwu.housinghttps://djangosnippets.org/snippets/1684/<p>At WWU Housing, we started using the <a href="http://plugins.jquery.com/project/tempest">Tempest jQuery plugin</a> for javascript templating, which has the same {{ var }} syntax as Django's templating.</p>
<p>We wanted to be able to use the same templates in our server-side python and our client-side js, so we had to have a way of …</p>
Freely redistributable