Christoph Zwerschke schrieb:
> ToscaWidgets 0.9.8 supports "variants" for Javascript and CSS resources
> (minified, packed or debug versions of the js/css files).
> 
> Does anybody know how to configure the default variant in TurboGears?
> I'd like to have the debug variant in my development environment, and
> the packed variant in my production environment.

There is no config-file-way for now, partially because TW lacks an 
option in the make_middleware-call, partially because TG2 doesn't 
propagate configuration settings in the AppConfig-class.

So IMHO the easiest way is to set this value inside config.middleware 
like this:


import tw.api

tw.api.resources.registry.ACTIVE_VARIANT = 
app_conf.get("tw.resource_variant", 
tw.api.resource.registry.DEFAULT_VARIANT)


Regards,

Diez

--

You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en.


Reply via email to