[Grok-dev] How do I use browser-specific stylesheets with grok?

Souheil CHELFOUH trollfot at gmail.com
Wed Jan 6 13:18:07 EST 2010

I though about that also. I fixed that in dolmen, using the
megrok.resourceviewlet package.
I have a ResourceManager for IE and One for the others and you
register your resource viewlet on the one you need.
I don't think that the hurry.Resource should care about that, it's
mainly a work-around if not an ugly filthy hack (i hate it, I hate it,
I hate it !)

2010/1/6 Martijn Faassen <faassen at startifact.com>:
> Hey,
> It'd be interesting by the way to teach hurry.resource about
> browser-specific stylesheets. We could add an option to resources that
> can indicate "IE-only"ness. hurry.resource would then use whatever the
> best practice tricks are to make sure resources are only loaded when
> that browser is used.
> There's a difference here in CSS and non-CSS resources however, which
> makes it a bit odd for javascript..
> Regards,
> Martijn
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev

More information about the Grok-dev mailing list