[Radiant] Extensions public directory
Andrea Franz
andrea at bigchief.it
Wed Mar 28 03:47:43 CDT 2007
Il giorno 28/mar/07, alle ore 05:41, Oliver Baltzer ha scritto:
> Hi all,
>
> some of the available extensions have a public folder. Is that folder
> somehow merged into the app's default public folder or are files in
> there accessed differently. I have some static Javascript that my
> extension would like to use, but I can't seem to access the file via
>
> http://hostname/javascripts/script.js.
>
> Any pointers?
>
In my extension I use a task like this:
desc "Copies files in public/admin"
task :move_files => :environment do
extension_public = File.join(File.dirname(__FILE__), '../', '../',
'public')
cp_r extension_public, RAILS_ROOT
end
-----
Andrea Franz
http://think.bigchief.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20070328/e3ecbdf2/attachment.html
More information about the Radiant
mailing list