If you are using the Perl Template Toolkit and want the template always to display a copyright notice giving the current year, just include the following in your template:
© [% USE date %][% date.format(date.now, '%Y') %]
It uses the Template::Plugin::Date plugin.
22 March 2006
Subscribe to:
Post Comments (Atom)
1 comment:
you can do the same thing in Smarty (PHP) templates with the following code:
©{$smarty.now|date_format:"%Y"}
Post a Comment