summaryrefslogtreecommitdiffstats
path: root/tracker/attribute-hashes.mdwn
blob: fa6286daf4164de1b75ac1dc02a0ae99421aa01a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Deal with meta attributes *hash*

The structure of *hash* (*MetaMap* with keys pointing at
*MetaInlines*) has similar issues as other YAMLE meta data block
cases. Example:

```
---
experiment:
 key_first: Värde
 key_second: värde
...
```

Solution is as always to transform to list of hash, that is wrap into
a list. Access then comes via loop template construct. The loop will
always undergo one iteration. Implicitly it will create a
scope. Example:

```
<TMPL_IF EXPERIMENT>
  <TMPL_LOOP EXPERIMENT>
     Knowing that ther will only be one revolution one can be sloppy with
     <TMPL_VAR KEY_FIRST> and
     <TMPL_VAR KEY_SECOND> contents.
  </TMPL_LOOP>
</TMPL_IF>
```