jferris/effigy

Rails: integrate with Haml

marnen opened this issue · 3 comments

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.

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.

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.

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.