Hi Neil,

I like: Parse::HTTP::UserAgent

the namespace is not closed for future extensions and it explicitly reflects 
what the plugin does

jonasbn
--
Jonas Brømsø Nielsen, logicLAB
www: http://www.logicLAB.dk/
eml: jona...@logiclab.dk
mbl: +45 31546056




On 24/02/2012, at 01.39, Neil Bowers wrote:

> Do people post plugin thoughts here for feedback, before committing a name to 
> CPAN?
> 
> I've created a simple Template plugin for accessing HTTP User-Agent details. 
> At the moment it's built on HTML::ParseBrowser, but with a simpler more 
> generic interface, so it can be backed onto another module, if a better one 
> becomes available.
> 
> I'm thinking of Template::Plugin::HTTP::UserAgent. You'd use it as follows:
> 
>       [% USE ua = HTTP::UserAgent %]
>       [% IF ua.name == 'Internet Explorer' && ua.major <= 7 %]
>               ...
>       [% ELSE %]
>               ...
>       [% END %]
> 
> You can pass it a user-agent string, but if one isn't passed, it will look 
> for the relevant environment variable.
> 
> Other possible names:
> 
>       Parse::HTTP::UserAgent
>       Parse::UserAgent
>       UserAgent
> 
> Any thoughts & suggestions appreciated,
> Neil
> 
> 
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates


_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to