Saturday, 14 September 2013

Interrogation about Yeoman, Maven and the location of Thymeleaf HTML templates

Interrogation about Yeoman, Maven and the location of Thymeleaf HTML
templates

I recently discovered Yeoman, a tool that greatly facilitates JS
dependency and build lifecycle management.
Furthermore, I use Maven as my Java dependency and build tool. I am
actually seeking to integrate both tools so that I get the best of both
worlds.
It seems the community has put a lot of effort into Maven/Yeoman
integration with various articles such as this one:
http://addyosmani.com/blog/making-maven-grunt/ as well as a yeoman-maven
plugin: https://github.com/trecloux/yeoman-maven-plugin
Last, I use Thymeleaf as my Spring-MVC templating solution.
Assuming the following directory layout (see yeoman-maven-plugin above):
pom.xml
- src
- main
- java
- webapp
- …
- test
- ..
- yo
package.json
component.json
Gruntfile.js
- app
index.html
...
- test
...
- dist
...
My question is where should my Thymeleaf templates reside?
Under the yo/app directory? (they would be subsequently copied into
appropriate directory by maven)
Directly under the src/main/webapp/WEB-INF/templates directory?
What I can't figure out in the case of an AngularJS application for
instance, is when and how templates/pages including server-side content
can interact with the servlet container given they Yeoman assumes they
live under its app directory...

No comments:

Post a Comment