rubyonrailsin

A Ruby and Rails talk

Tuesday, March 16, 2010


RE: [Radiant-Dev] Radiant as an extension to Radiant?

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Hello again,

I hate responding to myself, but it looks like warden[1] and url_mount[2] would be a good starting point for this, especially if radiant can be modified to rely on rails_warden[3] for authentication. We just need to write a rack application that uses warden and url_mount to handle "sites" or child rack applications.

[1]: http://github.com/hassox/warden
[2]: http://github.com/hassox/url_mount
[3]: http://github.com/hassox/rails_warden

Thanks,
-Scott

On Tuesday, March 16, 2010 1:58pm, "M. Scott Ford" <scott@vaderpi.com> said:

> Hi all,
>
> I thought I would introduce a wild idea I had this morning while thinking about
> multi-site implementations. One reason that I have not tried to use any of the
> existing multi-site extensions is I want to have really fine grained control over
> the gems and radiant extensions that are loaded for each site. (If there is a way
> to control this with the existing multi-site extensions, then please let me know
> how.)
>
> Radiant itself already handles controlling the extensions and gems loaded during
> startup. What if we added another layer to that logic, and created an extension
> that knows how to do the same thing but for site? So basically, Radiant core would
> just load the multi-site extension, and then every site would be what we now
> consider a Radiant instance. (If that makes any sense.)
>
> Another way to imagine this is to think about the multi-site functionality
> becoming the parent of Radiant core, instead of trying to fit a multi-site
> extension inside of Radiant (either directly in core or through extensions).
>
> I am not all that familiar with the core code-base, yet, so I am not sure if this
> is possible, but I thought I would pontificate and see what others think.
>
> Now that I have typed all of that out, though. It is starting to sound to me like
> these features might be best implemented as a rack middleware that Radiant can
> play nicely with. The middleware would own just sites and users, but radiant would
> own pages, layout, snippets, etc...
>
> I imagine that this would be useful to others in the Ruby community (if it has not
> already been done), and it would make it possible to have some sites that run
> rails apps, like radiant, others that are simple sinatra apps, and others that are
> instances of any other rack-based web solution.
>
> Thoughts?
> -Scott
>
> --
> Radiant CMS Dev Mailing List
> Post: radiantcms-dev@googlegroups.com
> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
> Group Site: http://groups.google.com/group/radiantcms-dev/
>


--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive