That pattern seems like a sufficiently good paradigm that some sort of
convention should be created to do this. Perhaps
tag "my_tag" do |tag|
@my_tag_data = MyModel.find_by_name(tag.attr['name'])
tag.render
end
end
would automatically use view/tags/my_tag.haml.html or something
David, I still use that code in my extensions today (though I'd be
interested to hear if anyone out there has come up with something better).
Now that Haml is built into Radiant, it would also be safe to convert to
using that for your templates (it might be even easier to do the binding
bit bu
Chris Parrish's solution to rendering partials within a Radius tag works
great. It's been almost a year since he posted it though, and I was
wondering if this functionality should be done a different way now --
i.e. does Radiant has a built-in way to handle this now?
Thanks,
- Dave
Chris Parris