djangosnippets.org: Latest snippets tagged with 'preprocessor'http://djangosnippets.org/tags/preprocessor/2009-11-27T11:34:18.425976-06:00Showell markup--DRY up your templates
2009-11-27T11:34:18.425976-06:00showellhttp://djangosnippets.org/snippets/1819/<p>The code shown implements a preprocessor for Django templates to support indentation-based syntax.<br />
</p>
<p>The pre-markup language is called Showell Markup. It allows you to remove lots of close tags and random punctuation. It also has a syntax for cleaning up individual lines of HTML with a pipe syntax for clearly …</p>
Freely redistributableCSS Preprocessor
2007-10-01T07:54:29.067219-05:00jokullhttp://djangosnippets.org/snippets/432/<p>Here is a Django view that turns code like this:</p>
<pre><code>@variables { $varcolor: #333; }
body { color: $varcolor; padding: 20px; }
.space { padding: 10px; }
.small { font-size: 10px; }
#banana(.space, .small) { margin-bottom: 10px; }
</code></pre>
<p>And turns it into something like this:</p>
<pre><code>body { color: #333; padding: …</code></pre>
Freely redistributable