version: desktop | mobile

Dave's Free Press

the Slightly Less Bad And Wrong Blog Edition

 

Recent posts

Less important journals

Search




Subscribe

rss

Journals that link here

Powered by

Bryar 3.0!
geeky silly politics rant weird meta religion music transport drinking london perl culture olympics photography language cooking hacking web sport media rsnapshot holidays books spam film whisky bryar yapc palm telecoms review bastards cars travel maths etiquette clothes lolcats amazon curry security home unix phone go environment bbc latin anglo-saxon privacy linux gps deafness work
Sun, 3 Jun 2007

New Bryar feature

Another tiny new Bryar feature - the CGI front-end has sprouted an extra method 'is_mobile' which you can call to figger out whether the user is on a mobile device or not. It's available in your templates like this:

[% PERL %] $stash->set( is_mobile => $stash->get('bryar')->config()->frontend()->is_mobile() ); [% END %]

and then use is_mobile like any other TT variable.

Posted at 17:01:04 by David Cantrell
keywords: bryar | geeky | hacking | meta
Permalink | 0 Comments

Archive

2007

Jan Feb Mar Apr
May Jun Jul Aug
Sep Oct Nov Dec
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan

2006

Jan Feb Mar Apr
May Jun Jul Aug
Sep Oct Nov Dec
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan

2005

Jan Feb Mar Apr
May Jun Jul Aug
Sep Oct Nov Dec
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan