On an old Trello I found a link to this renderer for "Mustache":
It may or may not be interesting. @rgchris said:
"I'd suggest looking at my RSP engine for handling string templates, local values, sanitization. LOAD-RSP loads a template and returns a function. That function can be applied to a block of local words and returns a completed string. The template need only be loaded once."*