Permalink
Browse files

simple edit, where the path+name of the resource is given to the Must…

…ache compiler. Improperly used the Encoding name before. None of these changes effect the behavior of the Mustache support. It's all good.
  • Loading branch information...
1 parent f532b05 commit 5726829cb282d53eb02f33074e1d556fa452ea43 @florinpatrascu committed Mar 22, 2013
Binary file not shown.
@@ -67,13 +67,13 @@ public long render(String path, Repository repository, MicroContext context, Wri
if (mustaches != null) {
Element mustacheElement = (Element) mustaches.get(key);
if (mustacheElement == null) {
- mustache = mf.compile(source, Globals.UTF8);
+ mustache = mf.compile(source, key);
mustaches.put(key, new Element(NAME, mustache));
}else{
mustache = (Mustache) mustacheElement.getObjectValue();
}
} else {
- mustache = mf.compile(source, Globals.UTF8);
+ mustache = mf.compile(source, key);
}
if (!CollectionUtils.isEmpty(context.getMap())) {

0 comments on commit 5726829

Please sign in to comment.