Mark Meves wrote:
> Radius provides a way to turn an object's methods into tags:
> 
>   http://radius.rubyforge.org/files/QUICKSTART.html
>   (near "Exposing Objects to Templates")
> 
> This seems like it would be a useful way to get at the properties of
> Active Record objects from with Radiant (for writers of extensions,
> for example.)
> 
> However, the Radiant::Taggable module does not seem to pull in the
> necessary define_tag() method necessary (of Radiant::Context)  to do
> this.

You could use:

PageContext.class_eval do
   define_tag ...
end

Kind of a hack, but it would work.

--
John Long
http://wiseheartdesign.com
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to