Re: Plugin name

Jonas Brømsø Nielsen <jonasbn-X5u24mS0fTpknbxzx/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
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: jonasbn-X5u24mS0fTpknbxzx/[email protected]
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
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.