From be2ce15facec2e8e7682fe04dc607aa0403808db Mon Sep 17 00:00:00 2001 From: Nathan Ward Date: Sun, 1 Sep 2019 12:10:11 -0400 Subject: [PATCH] #422: Added inline verbatim description to Verbatim tag documentation --- .../src/orchid/resources/wiki/tag/verbatim.md | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/docs/src/orchid/resources/wiki/tag/verbatim.md b/docs/src/orchid/resources/wiki/tag/verbatim.md index 6c2c48f09..c67b7f27d 100644 --- a/docs/src/orchid/resources/wiki/tag/verbatim.md +++ b/docs/src/orchid/resources/wiki/tag/verbatim.md @@ -1,9 +1,25 @@ # `verbatim` -The `verbatim` tag allows you to write Pebble syntax that won't be parsed. +The `verbatim` tag allows you to write a block of Pebble syntax that won't be parsed. ```twig {% verbatim %} {% for user in users %} {{ user.name }} - {% endfor %}} + {% endfor %} {% endverbatim %} -``` \ No newline at end of file +``` +
+## Inline Verbatim Text + +For inline verbatim text, a string literal can be used. For example, if you need to include **{{** in the output of a template, you can use `{{ "{{" }}` in string literal in the Pebble template + +This would be useful if you are using Pebble to generate Angular HTML component template files: + +```javascript +{{ "{{" }}school.name{{ "}}" }} +``` + +would produce the following template output: + +```javascript +{{school.name}} +```