appengine path issue

2 views
Skip to first unread message

Roberto Saccon

unread,
Feb 12, 2010, 1:27:49 PM2/12/10
to nitro-devel
while default application / templates root are set to "src/root" and
"src/templates", appengine packaging requires to put that stuff into
"WEB-INF" directory. Now what is the smartest way to handle this for
appengine ? Symbolic linking ? Or providing explicitly the
application / templates root folders (my current solution)?

I am using normal-templates. With the old templates I was just
adjusting the require-path in jackconfig.js (if I remember properly),
but with normal-templates this does not do the trick anymore

regards
--
Roberto

George Moschovitis

unread,
Feb 12, 2010, 1:55:57 PM2/12/10
to nitro...@googlegroups.com
Try this:

    NormalTemplateEngine = require("nitro/normaltemplate").NormalTemplateEngine,
    templateEngine = new NormalTemplateEngine({templatesRoot: "WEB-INF/src/templates", compileOptions: {}});

...

var app  = ...Render(Dispatch("WEB-INF/src/root", sitemap), templateEngine)...


I would like a better solution for the src/root WEB-INF/src/root problem, 
anyone knows how to set the csd to 'war/WEB-INF' instead of 'war/' in a Servlet?

regards,
-g.



--
You received this message because you are subscribed to the Google Groups "nitro-devel" group.
To post to this group, send email to nitro...@googlegroups.com.
To unsubscribe from this group, send email to nitro-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nitro-devel?hl=en.




--
http://www.gmosx.com/blog

Roberto Saccon

unread,
Feb 13, 2010, 3:00:39 AM2/13/10
to nitro-devel
that works great, thanks

--
Roberto

On Feb 12, 3:55 pm, George Moschovitis <george-moschovi...@gmosx.com>
wrote:

> > nitro-devel...@googlegroups.com<nitro-devel%2Bunsubscribe@googlegr oups.com>

Reply all
Reply to author
Forward
0 new messages