def action(elem, doc):
if type(elem) == Str and doc.mhash is not None:<EOL><INDENT>elem.text = doc.mrenderer.render(elem.text, doc.mhash)<EOL>return elem<EOL><DEDENT>
Apply combined mustache template to all strings in document.