3 ms·
I don't know ruby... but RoR is an established platform, I would think it would have something similar?
by meric 16y ago
I 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.