Skip to content

Commit

Permalink
Merge pull request #193 from oleg-nenashev/patch-1
Browse files Browse the repository at this point in the history
Add example of escaping Handlebars definitions with `{% raw %}`
  • Loading branch information
fralau authored Nov 28, 2023
2 parents 5f72c15 + eef2f23 commit f07146b
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 f07146b

Please sign in to comment.