Extension:SemanticMustacheFormat

The SemanticMustacheFormat extension lets your users create views from semantic queries using Mustache templates. It adds the  result format to the   parser function. Mustache templates are defined in the  namespace of the wiki. The query creates the context for a template and the result is rendered to the page. If needed, a Scribunto Lua helper module can be added to the template context to add functions and variables to assist in formatting. After the template is rendered, it is parsed as WikiText along with the rest of the page.

See the README file for a detailed example and detailed usage description.

Using git
In your extensions directory install the extension and its dependency submodule, mustache.php.

In LocalSettings.php
If the helper is a function, it must be a closure instance or an invokable class.



Parameters added to the parser function








Note that the default Mustache tags will conflict with WikiText tags. You can use a different set of delimiters, like ERB style  and   by prepending   to your Mustache template.