mercredi 25 mars 2015

Spring boot with Ember

I'm trying to create a Spring Boot application using Ember.


I am using Thymeleaf template engine. When using the default template mode (HTML5), Thymleaf throws errors when parsing handlebars syntax.

Eg. It will say that the <li> tag is not closed when parsing the following code:



<li {{bind-attr class="todo.isCompleted:completed todo.isEditing:editing"}}>
...
</li>


To avoid these errors I am using the Legacy HTML5 mode by adding spring.thymeleaf.mode=LEGACYHTML5 to application.properties and adding net.sourceforge.nekohtml:nekohtml:1.9.21 dependency.



  1. Is Thymeleaf template engine an appropriate choice to use Ember with Spring boot? If not, which one?

  2. If Thymeleaf is the right tool for the job, is there a better way than using Legacy HTML5 and nekohtml?





Aucun commentaire:

Enregistrer un commentaire