raymyers / JHaml

Haml (XHTML Abstraction Markup Language) implementation in Java.
GNU General Public License v3.0
82 stars 10 forks source link

Integrate with Spring 3+ #8

Open palmerabollo opened 13 years ago

palmerabollo commented 13 years ago

As a view technology, as Tiles does. Would be a nice enhancement.

raymyers commented 13 years ago

I would absolutely like to get Spring MVC integration going. A ViewResolver implementation (which Spring requires) would also make the Grails integration cleaner. Seems like the basis of using Haml as a preprocessor for the JSP compiler would no longer work with that approach.

Therefore, the simplest thing to do might be to incorporate Groovy interpreter calls into JHaml's engine. How would you feel about a required dependency on Groovy for JHaml, if it meant Spring integration?

palmerabollo commented 13 years ago

Would be a great starting point (not really sure about how big the groovy dependency would be).

Some points to take into account:

raymyers commented 13 years ago

Adding a groovy dependency would add around 5 to 6 megs. Seems like this would be a good direction.