Skip to content

Commit

Permalink
deploy: a5c685d
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 7, 2024
1 parent 9df1d98 commit 8b1046b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,14 @@ <h2 id="filters"><a class="header" href="#filters">Filters</a></h2>
<p>To define your own filters, simply have a module named <code>filters</code> in
scope of the context deriving a <code>Template</code> <code>impl</code>. Note that in case of
name collision, the built in filters take precedence.</p>
<h2 id="filter-blocks"><a class="header" href="#filter-blocks">Filter blocks</a></h2>
<p>You can apply a <strong>filter</strong> on a whole block at once using <strong>filter
blocks</strong>:</p>
<pre><code class="language-text">{% filter lower %}
{{ t }} / HELLO / {{ u }}
{% endfilter %}
</code></pre>
<p>The <code>lower</code> filter will be applied on the whole content.</p>
<h2 id="whitespace-control-1"><a class="header" href="#whitespace-control-1">Whitespace control</a></h2>
<p>Askama considers all tabs, spaces, newlines and carriage returns to be
whitespace. By default, it preserves all whitespace in template code,
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions template_syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ <h2 id="filters"><a class="header" href="#filters">Filters</a></h2>
<p>To define your own filters, simply have a module named <code>filters</code> in
scope of the context deriving a <code>Template</code> <code>impl</code>. Note that in case of
name collision, the built in filters take precedence.</p>
<h2 id="filter-blocks"><a class="header" href="#filter-blocks">Filter blocks</a></h2>
<p>You can apply a <strong>filter</strong> on a whole block at once using <strong>filter
blocks</strong>:</p>
<pre><code class="language-text">{% filter lower %}
{{ t }} / HELLO / {{ u }}
{% endfilter %}
</code></pre>
<p>The <code>lower</code> filter will be applied on the whole content.</p>
<h2 id="whitespace-control"><a class="header" href="#whitespace-control">Whitespace control</a></h2>
<p>Askama considers all tabs, spaces, newlines and carriage returns to be
whitespace. By default, it preserves all whitespace in template code,
Expand Down

0 comments on commit 8b1046b

Please sign in to comment.