diff options
author | Gustav Eek <gustav.eek@fripost.org> | 2019-12-14 23:30:16 +0100 |
---|---|---|
committer | Gustav Eek <gustav.eek@fripost.org> | 2020-01-06 16:25:18 +0100 |
commit | 926db30b62cae327398e9971605051680710b21a (patch) | |
tree | 34d698504f50a4cc8d70e7d1c2d7d230aedf1e85 /tracker/attribute-hashes.mdwn | |
parent | 9b611caf3208ea05988f4d0bdeacac9eb0c0e59d (diff) |
Tracker. Collect issues and ideas in tracker
Collect a broad series of possible improvements to Pandoc Ikiwiki
plugin management of meta block attributes. The issues are best
consumed via the collection page: *issues.mdwn*. Also main tracker
document added.
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> +``` |