Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
grandalf
· 15y ago · 0 comments
this is awesome, feel like writing it for ruby too?
Comments
[–]
start_something
15y ago
Check out DRYML from the Hobo project (hobocentral.net). You build taglibs that can be used and overridden however you like.
[–]
meric
15y ago
I don't know ruby... but RoR is an established platform, I would think it would have something similar?
[–]
grandalf
OP
15y ago
Not 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
15y ago
Isn't this just content_for/yield(:sym)? Or are you talking about something else?
http://api.rubyonrails.org/classes/ActionView/Helpers/Captur...
[–]
grandalf
OP
15y ago
That's close. Nowhere near as elegant as Django templates though, in my opinion.