Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
adding raw tag docs
Browse files Browse the repository at this point in the history
  • Loading branch information
paularmstrong committed Dec 27, 2011
1 parent e8435fe commit c01f540
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/tags.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Built-in Tags <a name="builtin" href="#builtin">#</a>
* [block](#block) * [block](#block)
* [parent](#parent) * [parent](#parent)
* [include](#include) * [include](#include)
* [raw](#raw)
* [for](#for) * [for](#for)
* [empty](#empty) * [empty](#empty)
* [if](#if) * [if](#if)
Expand Down Expand Up @@ -42,6 +43,12 @@ Includes a template in it's place. The template is rendered within the current c
{% include template_path %} {% include template_path %}
{% include "path/to/template.js" %} {% include "path/to/template.js" %}


### raw <a name="raw" href="#raw">#</a>

Wrap any section in `{% raw %}...{% endraw %}` to stop the token parser from modifying any of the internal content. Also useful for putting swig templates into JavaScript for swig in the browser. Attempting to do the following without this tag will cause a parsing error and your template will not be displayed.

You can output any content, including swig tag modifiers like {% raw %}<code>{{</code> and <code>{%</code>{% endraw %} without having them parsed and errors thrown.

### for <a name="for" href="#for">#</a> ### for <a name="for" href="#for">#</a>


For loops have 4 special context variables accessible inside of the loop: For loops have 4 special context variables accessible inside of the loop:
Expand Down

0 comments on commit c01f540

Please sign in to comment.