Tuesday, March 27, 2018, 12:53:28 PM, Denis Bredelet wrote:

> Hi Daniel,
>
> Le 25 mars 2018 à 17:52, Daniel Dekany <ddek...@apache.org> a écrit :
>
> In FM3 there's a configuration (ParsingConfiguration to be precise)
> setting called "templateLanguage" (of type TemplateLanguage). This is
> kind of a dummy ATM, but will be important in supporting multiple
> template languages in FM3. 
> ...
>
> So, are you saying this solution is the most extensible while remaining 
> reasonably simple?

Yes, basically. I don't try to make a meta-template-engine out of
FreeMarker. I want to keep it focused (though, if some semantical
tweak is very easy to add as a Configuration setting, maybe we will
allow that). However, it's the peculiarity of template languages that
syntax, especially the top-level syntax (which is the syntax that
separates static text from the dynamic parts) matters a lot.

As of a highly configurable syntax, where you specify the characters
sequences that start the "tags" and such, this architecture doesn't
exclude that (because a custom TemplateLanguage can have many
settings), but I think it's better to push a few "official" variations
instead. It also helps in tooling, as syntax highlight definition
formats are often very inflexible, you can't have placeholders in
them. Instead, you need one separate such file per permutation... but
that's doable if you know what the permutations are, and what the
associated file extension is.

> Thanks,
> -- Denis.

-- 
Thanks,
 Daniel Dekany

Reply via email to