now works with custom mustache, layout template and partials