Skip to content
Permalink
Browse files

Merge pull request #2120 from nickanderson/CFE-3059/3.12

Added FAQ entry illustrating @ extension to mustache specification (3.12)
  • Loading branch information...
nickanderson committed May 20, 2019
2 parents 6968103 + 9bdd084 commit a3221966eb98409616902bd1c26e7c57e54e35f1
Showing with 8 additions and 0 deletions.
  1. +8 −0 guide/faq/mustache-templating.markdown
@@ -57,6 +57,14 @@ of the CFEngine system. That's where `vars.mon.listening_tcp4_ports` came from.
```
{% endraw %}

# How can I access keys when iterating over a dict?

In CFEngine, the `@` symbol expands to the current key when iterating over a dict.

{% raw %}
[%CFEngine_include_example(mustache_extension_expand_key.cf)%]
{% endraw %}

# Can you use nested classes?

You can. This is handy when options slightly differ for different operating systems.

0 comments on commit a322196

Please sign in to comment.
You can’t perform that action at this time.