Thanks. I guess everything is easy if you know what you're looking for!
I'd like to set flags based on what that contains, like "send SVG images". Where would I
put that in MyApp so it gets called some time before rendering the view?
On 3/6/2011 5:00 AM, Tobias Kremer tobias.kremer-at-gmail.com |Catalyst/Allow
to home| wrote:
On 06.03.2011, at 11:56, John M. Dlugosz wrote:
I'm supposing that there must be something in the request object that lets me
know if I'm serving to particular browsers, in particular to whatever version
of IE. Then, in some single place in the app, automatically digest that and
stick a flag in the stash. Now, the TT files can test for that flag and skip
advanced features or serve alternative content.
Has this already been swept up into a nice module of some kind?
Let me CPAN this for you:
http://search.cpan.org/dist/Catalyst-TraitFor-Request-BrowserDetect/
--Toby
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/