Skip to content

Commit

Permalink
PebbleTemplates#422: Added inline verbatim description to Verbatim ta…
Browse files Browse the repository at this point in the history
…g documentation
  • Loading branch information
nward1234 committed Sep 1, 2019
1 parent 75145ec commit be2ce15
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions docs/src/orchid/resources/wiki/tag/verbatim.md
Original file line number Diff line number Diff line change
@@ -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 %}
```
```
<br/>
## 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
<td>{{ "{{" }}school.name{{ "}}" }}</td>
```

would produce the following template output:

```javascript
<td>{{school.name}}</td>
```

0 comments on commit be2ce15

Please sign in to comment.