Skip to content

Commit

Permalink
Add example of escaping Handlebars definitions with {% raw %}
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev authored Nov 28, 2023
1 parent 5f72c15 commit eef2f23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webdoc/docs/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ which exists for that purpose:
recurse: true
{% endraw %}


The same approach can also be used for inline definitions, e.g.:

You can use the `raw` expression for inline definitions, for example: {% raw %} `{{{method}}}-{{{url}}}.json` {% endraw %} for
escaping 3-bracket expressions often used in Handlebars.

### Solution 5: Altering the syntax of jinja2 for mkdocs-macros

Sometimes the introduction of mkdocs-macros comes late in the chain, and the
Expand Down

0 comments on commit eef2f23

Please sign in to comment.