tablatom/hobo — pull request #32 by bernardo (2011-12-08 22:03:37+00:00)
Title: Fixes core tags being escaped by Rails 3+

The ending of some core tags (ex.: html, form, etc) were not being output with raw, therefore Rails was escaping them. This should fix it, plus it updates the README to explain how to use Dryml in Rails 3.

**Note/Pledge to Hobo developers**: I am not a Hobo user (my projects need a fair bit of customization and I tend to go with "Rails raw" to start from ground up), but I have been watching you guys work for a long time and willing to be able to use Dryml on its own for a long time. I think Rails views (sum of ERB + helpers + partials) are a crappy mess, you end up with lots of unreadable code that is really hard to reuse and maintain. Dryml is the best and only solution I have seen for this sulkiness so far, and it's been like that for years now: nothing else comes along, and Dryml remains a promise just a few people and the Hobo niche use. Yet people are jumping on the HAML and Formtastic bandwagon, when they are nothing but "gimmicks" that don't solve the architectural problem.

Besides thanking for the nice work, I want to make a pledge: invest in polishing and "marketing" Dryml as the solution it is for Rails views, try to bring users and developers to use it "standalone". You should try talking to Rails core guys. I think it should be bundled in future versions of Rails, just like sass and coffeescript were, being much less needed. You could create a "Rapid Basic" set of Dryml tags to be included in the gem that work in standalone Rails and basically replace (or wrap) Rails helpers.

I am willing to go "early adopter" on standalone Dryml with my production projects, but to be honest it is a great leap in the dark: I am really worried about getting stuck in showstopper bugs or huge performance bottlenecks and being on my own. My firm is a small and underfunded startup and needs to focus on its bottom line, the sane decision would be to stay in "vanilla Rails", but I am so disgusted, after all this years, of having crappy code in my views.