Is there some what to have a template file under /public, and have it
include another file in a sibling directory?
I have this directory tree
/conf
/public
/log
/templates
my index.xhtml file has
<render href="/templates/header" />
so it can slurp in header.xhtml
but it fails.
I've also tried
<render href="templates/header" />
My run.rb (this is running under WEBrick) has
N::Runner.run( :host => '127.0.0.1',
:port => 9999 ,
:template_root => 'templates',
:name => "Tagegory"
)
which I though would tell Nitro to look in templates/ for files.
On a related issue, if I simply put the header file in the same dir as
index.xhtml, and use
<render href="header" />
then it works. If I try to put the header file is a subdirectory of
public, and use this
<render href="/common/header" />
I get errors about no such action.
Thanks,
James
--
http://www.ruby-doc.orghttp://www.rubyxml.comhttp://catapult.rubyforge.comhttp://orbjson.rubyforge.comhttp://ooo4r.rubyforge.comhttp://www.jamesbritt.com