We're using the cascade app from paste:
http://pythonpaste.org/modules/cascade.html
Along with the paste StaticURLParser and StaticJavascripts (from pylons)
It's configured like this.
So configuring this should be as simple as setting up the proper info
in the ini file.
javascripts_app = StaticJavascripts()
static_app = StaticURLParser(config['pylons.paths']['static_files'])
app = Cascade([static_app, javascripts_app, app])
Let me know if we need to expose some more configuration information
to the user app, all of this was changed sort-of-recently when we
cleaned up middleware.py.
On Wed, Jul 9, 2008 at 10:32 AM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> can somebody give me a hint on how static content is served? I need to "embed"
> the TG2-app into an existing wsgi-app below a certain path - and obviously
> serving e.g. the CSS fails miserably. There was the old way of using tg.url
> and server.webpath (or such) - any such facility available?
>
> Diez
>
> >
>
--
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---