Have a look at the Radiant::Taggable module, PageContext class and StandardTags module in the Radiant source to get an idea of one strategy. One way or another, the tag definitions end up on a subclass of Radius::Context. How they get there is up to you.
Sean Kieran Johnson wrote: > Thanks, its just using Radius within a Rails app. So do I put all the > tags within one context and parse that? Or can I separate them out a > bit and parse each one? > > Kieran > On 12 Nov 2007, at 20:31, Sean Cribbs wrote: > > >> Depends on if you want to use just Radius, or the whole Radiant >> application. If you want to use just Radius, you can install the gem >> and require it like you would any other gem. Then you would define >> your own context and tags within it, set up the parser and go. >> >> For the case of integrating Radiant with your Rails app, the easiest >> way is to build your app in a Radiant extension and use the >> "share_layouts" extension to use the same layouts as your Radiant >> pages. If you want more detail with this, query me again. >> >> Sean >> >> On Nov 12, 2007 2:08 PM, Maged Makled <[EMAIL PROTECTED]> wrote: >> >>> Kieran Johnson wrote: >>> >>>> Hi, >>>> >>>> I've been looking through the source of Radiant and I'm not quite >>>> sure which files I need to include in a rails app so I can just have >>>> the use of radius. I can see that I need to require radius in my >>>> environment.rb and include the files that contain the tags, but how >>>> do I send them to the views so I can render them? >>>> >>>> Sorry if this is a newbie question but Google turned up zilch. >>>> >>>> Cheers >>>> >>>> Kieran >>>> >>> I also have a rails app that I would like it to be used with >>> Radiant. I >>> would like to use radiant only for static pages And/Or the layout. >>> Sorry >>> for the newbie question but if anyone has any idea or tutorial on >>> how to >>> do that , it will be appreciated. >>> >>> Thanks >>> >>> Maged >>> -- >>> Posted via http://www.ruby-forum.com/. >>> >>> _______________________________________________ >>> Radiant mailing list >>> Post: [email protected] >>> Search: http://radiantcms.org/mailing-list/search/ >>> Site: http://lists.radiantcms.org/mailman/listinfo/radiant >>> >>> >> _______________________________________________ >> Radiant mailing list >> Post: [email protected] >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> > > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
