Template::Plugin::AddTime - TT filter plugin to add file modified time
# 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
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.
Masakazu Ohtsuka (mash) <o.masakazu@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Template::Plugin::AddTime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::AddTime
CPAN shell
perl -MCPAN -e shell install Template::Plugin::AddTime
For more information on module installation, please visit the detailed CPAN module installation guide.