mustache.xq is an XQuery-based implementation of the Mustache templating language. Mustache is a framework-agnostic way to render logic-free views and can be used for HTML, config files, source code—anything. It works by expanding tags in a template using values provided in a hash or object. For more information on Mustache, see the mustache(5) manpage.
Mustache.xq was designed using MarkLogic Server but can be used in any XQuery processor.