ahhh, it should have read:

render_response('newtemplate.html')


foo just gets added to the searchpath

neat


On Jun 3, 8:42 pm, voltron <[EMAIL PROTECTED]> wrote:
> Okay, I dug...
>
> I edited the load_enviroment to taste, but I still get errors:
>
> def load_environment(global_conf={}, app_conf={}):
>
>     map = make_map(global_conf, app_conf)
>
>     # Setup our paths
>
>     root_path =
> os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>
>     paths = {'root_path': root_path,
>
>              'controllers': os.path.join(root_path, 'controllers'),
>
>              'templates': [os.path.join(root_path, path) for path in \
>
>                            ('components', 'templates', 'foo')],
>
>              'static_files': os.path.join(root_path, 'public')
>
>              }
>
> the path foo is not recognized when I try to render a template from
> it:
>
> render_response('foo/newtemplate.html')
>
> could someone help me out?
>
> thanks
>
> On Jun 2, 8:13 pm, voltron <[EMAIL PROTECTED]> wrote:
>
> > I tried using subdirectories to render templates in PYlons:
>
> > return render_response("/main/'standard.html")
>
> > this failed, how does one pass templates from other directories or
> > subdirecotires?
>
> > Also, for static resources, like images or CSS files that actually are
> > on the proxy server proxying for the Paster server, how can I pass a
> > sort of "/media" path to my templates that would always be resolved no
> > matter how deep the links are that are mapped?
>
> > Thanks


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

Reply via email to