Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions docs/userGuide/markBindSyntaxOverview.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ MarkBind has several core Vue.js components built on the popular [BootStrap](htt

[Nunjucks](https://mozilla.github.io/nunjucks/) is a JavaScript based templating tool. Here is a simple example:

%%CODE:%%
<div class="indented">

{% raw %}
```html
<ul>
Expand All @@ -110,15 +113,21 @@ MarkBind has several core Vue.js components built on the popular [BootStrap](htt
```
{% endraw %}

{{ icon_arrow_down }}
</div>

%%OUTPUT:%%
<div class="indented">

<box border-left-color="grey" background-color="white">

<box>
<ul>
{% for item in [1, 2, 3, 4] %}
<li>Item {{ item }}</li>
{% endfor %}
</ul>

</box>
</div>

As MarkBind uses Nunjucks behind the scene, **MarkBind is generally compatible with Nunjucks**, which means you can use Nunjucks templating in your source files. Note that ==the code is processed for Nunjucks syntax before the rest of the MarkBind syntax are processed==.

Expand Down