Adam Gent
Adam Gent
Yes but your request seems kind of out of scope for a library that mostly follows the mustache spec. Adding parameters basically makes it not logic-less and there is a...
@jvmlet Did you ever solve your problem? I forgot to mention you could also use Mustache Lambdas and parse the section body or do a builder approach where you return...
Given > I appreciate your help, everything is a lot quicker and nicer to the cpu now. @samskivert I think we can close this issue now?
@Dedrakot are you still using JMustache and `Visitor` interface? I'm curious how many are still using it because there are issues with it including as you noted knowing if you...
> However, TemplateLoader.getTemplate returns a Reader instead of a Template, meaning that every time a partial is used, it is recompiled into a Template, which incurs extra overhead. I don't...
@samskivert I think the above issue could be remedied for now with better documentation. 1. That extending the compiler is how to add caching of templates 2. That the partials...
You are incorrect. It is the responsibility of who creates the writer to close it. When handing off writers to other methods or classes they should never close the writer.
@samskivert I'm fairly sure we can close this issue. One tangental thing that we could add in something like 2.0 (or possibly in a minor version depending on semver semantics)...
First see this: https://github.com/samskivert/jmustache#newline-trimming Second I could not reproduce your problem. ```java @Test public void testTrim() throws Exception { String template = // """ {{#useBeanValidation}}{{> beanValidation}}{{/useBeanValidation}} public Integer getZip() {...
@samskivert I could not reproduce this. I think we can close this issue.