Masakazu Ohtsuka > Template-Plugin-AddTime-0.01 > Template::Plugin::AddTime

Download:
Template-Plugin-AddTime-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Template::Plugin::AddTime - TT filter plugin to add file modified time

SYNOPSIS ^

 # in template
 [% use AddTime %]
 [% AddTime('t/Template/Plugin/addtime\.t') -%]

 # result
 t/Template/Plugin/addtime\.t\?1231163490


 # or with a base path
 [% USE AddTime('tmpl/static') -%]
 [% '/js/prototype\.js' | addtime -%]

 # adds modified time of tmpl/static/js/prototype\.js
 /js/prototype\.js\?1231163490

DESCRIPTION ^

Template::Plugin::AddTime is a TT filter plugin to add file modified time

You may want to use this module when you want to force browsers not to use their cache when file modified at your server.

AUTHOR ^

Masakazu Ohtsuka (mash) <o.masakazu@gmail.com>

SEE ALSO ^

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: