jferris / effigy

Ruby views without a templating language
http://rdoc.info/projects/jferris/effigy
MIT License
206 stars 6 forks source link

Rails: integrate with Haml #3

Open marnen opened 14 years ago

marnen commented 14 years ago

It would be really nice to be able to use Haml for template files. (Yes, I know it's an interpolation-based language, but the syntax is lots nicer than plain HTML.) The only Effigy+Haml solution I've seen is http://gist.github.com/261527, and I'm not sure how to generalize that to Rails.

jferris commented 14 years ago

I understand the motivation here, but this isn't really something I'm interested in. I'd like to keep Effigy focused on plain HTML.

marnen commented 14 years ago

I don't see how supporting Haml would be at odds with this philosophy. Haml is really just HTML with fewer characters. Effigy would only have to support a subset of it -- basically, just the %tag syntax. And frankly, you'd reach more Rails developers if you did this. If there's some way I can help, let me know.

jferris commented 14 years ago

If you want to put together a patch, I'd pull it in, as long as it doesn't considerably complicate the Rails template handler.