On 9/1/10 9:39 AM, Jim Gay wrote:
On Tue, Aug 31, 2010 at 1:09 PM, Wes Gamble<we...@att.net>  wrote:
I have an additional path that I would like to be on the load path for a
given extension.

What is the best way for me to add this load path to the set of default load
paths in Radiant?

Do I need to modify the load paths for _all_ extensions or just this one?


The load paths are set for the entire application.
If you want to load something from an specific path you could just
search for files in that path and load or require them.
But you're not being very specific; do you have an example of what you
want to do?

I want to add the ability to use the Cells gem (http://github.com/apotonick/cells) within an extension. I wrote a custom tag that allows me to use a "cell" anywhere in my Radiant application.

It requires the use of a "cells" directory underneath "app", so I'd like to load "app/cells" alongside the other extension paths, ideally in ExtensionLoader.load_paths_for (which, unfortnately, is private, and uses a hard-coded list of directories).


Reply via email to