Haml isn't coupled with Rails at all. It can be installed completely 
separately.

As for compiling down to another templating language, it's certainly 
possible (and perhaps even easy). There's no support for it in the 
current parser, but Amadeusz Jasak has created a PHP port 
(http://sourceforge.net/projects/phphaml/) that does just that (although 
the target is only PHP templates), proving that it's certainly possible. 
Haml isn't a terribly complicated language, or at least the basics 
aren't; you could probably code up a simple Java-based Haml-to-JSP 
parser in a weekend.

- Nathan

Evgeny wrote:
> Greetings All,
>
> I've seen Haml used to replace rhtml in rails, and loved it.
> I've seen Haml used as templates for static html, and loved it.
>
> Now I work for a company that has a java based web product.
> And there are people here writing JSP pages, typing html by hand.
>
> How closely is Haml coupled with rails code?
> Can it convert a Haml template into a "different" template?
>
> For example, in JSP there are two embedding tags (that I know of, and 
> I'm not an expert) :
>     <%@ page import="some.java.*" %>
>     <%! some java code %>
>
> So perhaps having Haml like this:
>     %span= some java code
>
> Would render a jsp file with:
>     <span><%! some java code %></span>
>
> Same thing for PHP, ColdFusion, and whatever other html embedded 
> language you may think about.
>
> I am not proposing re-writing haml in another language, only using 
> (ruby) haml templates
> and rendering the results as rhtml/jsp/php/asp/cfm/whatever   with 
> embedded tags.
>
>
> Regards,
>
> - evgeny
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to