Closed sadbeast closed 9 months ago
FYI I have applied your patch locally, and will add above suggestions before pushing. Thanks a lot, this is a great addition for Mustache users.
Thanks a lot for this PR :pray: , I merged it locally, applied my suggestions, and created a new release!!!
BTW of course, your commit 8f5aa17109dbb0b6168b9cf1b0c4e78c5a6d95b1 is preserved in git history, in case you are wondering.
Fantastic, thanks so much! I agree with the separate MustacheLoadArgs
approach, much cleaner.
According to the facil.io docs (http://facil.io/0.7.x/fiobj_mustache#fiobj_mustache_new):
This will allow partial templates to work.
However, this also introduces a breaking change to the existing
MustacheNew
function. This change makes it mirror the C version more closely where it accepts aMustacheLoadArgs
struct instead of just the data. Although that's also a handy method to have, so I renamed that to MustacheData...maybe there's a better name?