2 ms·
this is awesome, feel like writing it for ruby too?
by grandalf 16y ago
this is awesome, feel like writing it for ruby too?
- meric 16y agoI don't know ruby... but RoR is an established platform, I would think it would have something similar?
- grandalf 16y agoNot with the same notion of inheritance that django templates have (with multiple blocks that can be overridden in child classes). There is one project someone attempted but never finished.
- btucker 16y agoIsn't this just content_for/yield(:sym)? Or are you talking about something else? http://api.rubyonrails.org/classes/ActionView/Helpers/CaptureHelper.html#method-i-content_for http://api.rubyonrails.org/classes/ActionView/Helpers/Captur...
- grandalf 16y agoThat's close. Nowhere near as elegant as Django templates though, in my opinion.
- start_something 16y agoCheck out DRYML from the Hobo project (hobocentral.net). You build taglibs that can be used and overridden however you like.