[Radiant] Combining Radiant with a Rails App
Andrew Hodgkinson
ahodgkin at rowing.org.uk
Thu Jul 6 18:33:29 CDT 2006
Harvey Bernstein wrote:
> Here's the thing. I want to keep DRY by making use of Radiant's layout
> facilities, user management, tags (in particular breadcrumbs) and
> snippets.
I'm doing something broadly similar. I have a collection of Rails
applications (RForum, Instiki, Typo etc.) all sharing some layout
fragments with a global stylesheet defining the bulk of visual
properties and custom stylesheets to cope with the quirks and different
class/ID names used in the different application RHTML files. Some
customisation of RHTML files was required in addition to this.
For less dynamic pages, Radiant appears to be just what I need - a small
team wants to edit effectively static content. Since Radiant has the
concept of layouts and snippets, things like the shared header, footer
and static sidebar content should probably be defined as snippets within
Radiant. What I'd like to do is have these end up exported into the
filesystem when they are changed, so that while Radiant keeps its own
copy in the database, a synchronised copy appears in a shared location
(accessed primarily by symlinks currently) so other parts of the site
maintain layout. To do this I believe I will have to modify Radiant to
save snippets to the filesystem as well as into the database when
updated or created anew.
This may be an approach you could use - turn the idea of incorporating
your Views into Radiant on its head, and instead use exported bits of
Radiant content in your other Views.
--
Posted via http://www.ruby-forum.com/.
More information about the Radiant
mailing list