String file = tc.file();
int dotindex = file.lastIndexOf(".");
extension = dotindex == -1 ? "" : file.substring(dotindex);
But that doesn't work well for me in my current project, as in some cases my top-level template has a suffix but
none of my partials do.
I'm not sure where the api would go, maybe DefaultMustacheFactory.setExtension(String ext)
so i could do a setExtension(null) if i don't want that behavior.
Thanks.
-mda
--
You received this message because you are subscribed to the Google Groups "mustache.java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mustachejava...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.