diff options
Diffstat (limited to 'tracker/attribute-hashes.mdwn')
| -rw-r--r-- | tracker/attribute-hashes.mdwn | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/tracker/attribute-hashes.mdwn b/tracker/attribute-hashes.mdwn new file mode 100644 index 0000000..fa6286d --- /dev/null +++ b/tracker/attribute-hashes.mdwn @@ -0,0 +1,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> +``` | 
