added support for mustache/handlebar templates