4 ms·
I have yet to see a good case made for when abstracting HTML back is a "really great idea".
by bprater 18y ago
I have yet to see a good case made for when abstracting HTML back is a "really great idea".
- nonrecursive 18y agoI wouldn't call HAML "really great", but after using it for a few months I can say it's a pleasant improvement over writing straight HTML. It's just a matter of taste.
- rufo 18y agoPerhaps, but Haml isn't an abstraction layer. You're still using exactly the same HTML tags and attributes, just expressing them in a different way. A better way of thinking about it would be simply an alternative syntax for HTML, eliminating most of the tag soup that's inherent in HTML + ERB.
- shaunxcode 18y agoAre you serious? What about when you want to target multiple platforms with the same interfaces but don't want to commit to one form of markup/generated code? Imagine being able to easily render to flex, jquery ui, ext js, clean css/xhtml, gross but effective tables etc. If you abstract it the idea will come.