> On 3 Jan 2018, at 10:01, Marius Dumitru Florea 
> <[email protected]> wrote:
> 
> From the home page it looks very HTML oriented, which is not good for us. I
> think we need a general purpose templating language that can be used to
> generate anything (JSON, XML, CSV, etc.) not just HTML.

Yes it looks HTML-oriented indeed.

However as I mentioned in my initial message, I think that could be a good 
thing actually. Right now it’s a pain to write UIs in wiki pages because HTML 
and Velocity don’t play very well together, and wiki syntax is absolutely not 
great to generate UI).

So I see a use case for an HTML-oriented scripting templating language.

Note that my goal with this thread was not to suggest a replacement for 
Velocity. I just saw some twitter post that thymeleaf had just released a new 
version and since I remembered hearing the name, I thought about mentioning an 
idea here that it could be interesting to investigate.

Right now, I don’t see the issue with Velocity. It’s very simple and stable. 
Maybe some competitors could have better perfs I don’t know (there are still 
things we can tune with Velocity I believe).

But it would be interesting to list the features/use cases we’d like to see in 
a new general purpose templating language for XWiki and that Velocity doesn’t 
support.

Thanks
-Vincent

> 
> On Tue, Jan 2, 2018 at 11:48 PM, Vincent Massol <[email protected]> wrote:
> 
>> See http://www.thymeleaf.org/
>> 
>> With this, users could combine HTML and scripting which could be a nice
>> option when using the {{html}} macro for example.
>> 
>> {{html}}
>> {{thymeleaf}}
>> …
>> {{/thymeleaf}}
>> {{/html}}
>> 
>> Related:
>> * https://dzone.com/articles/template-engines-review-after-
>> deprecated-velocity
>> 
>> Thanks
>> -Vincent
>> 
>> 

Reply via email to