Extending page templates with Mustache and Yaml
After spending some interesting hours adding Mustache and Yaml to remark I think this might be a useful extension, providing a much more powerful mechanism as the current form of page templates.
Note: Currently all this is more a PoC but something readily available for a pull request!
The basic idea is to support Mustache in Template Pages and in Presentation Pages Headers extend the property specification to understand Yaml (maybe in an restricted form and stopping at the first empty line).
I think this would help in larger presentations to reduce the "Copy&Pasting" necessary to achieve a uniform page layout and help to centralize systematic modifications.
Thinking even further, with some minimal internal support from remark (mostly by providing some kinds of "lists" and "dictionaries" automatically) I suppose there could be features like showing progress (in a bread-crumb navigation style, things covered, things to come) automatic TOC creation or indexing of selected key words (for which internet links or an extended explanation are provided in an appendix).
All of the above are features I want for my major application of remark (combined presentations and print-outs for the participants of my C++ courses), but in case there is broader interest I can keep interested parties informed about the progress I make.
Note: Both extensions are in so far independent as Mustache templates are the base and Yaml only adds some expressiveness to specify properties.
Also note that both of the libraries I considered above are rather light-weight and would - if used unchanged - add as little as 50 KB to the minified JavaScript, so they are far below the cost of syntax highlighting (and Yaml could possibly be further reduced as only a One-Way-Conversion needs to be available).
Is this in a working progress?