In this case, you have to create a global like:
sub {
my $format = shift || '%yyyy%-%mm%-%dd%';
require GT::Date;
return GT::Date::date_get(time, $format);
}
Now, you can use those tags below in the templates:
<%global_name('%mm%-%dd%-%yyyy%')%>: displays current day
<%global_name('%HH%:%MM%-%ss%')%>: displays current time
Hope that helps,
TheStone.
B.
sub {
my $format = shift || '%yyyy%-%mm%-%dd%';
require GT::Date;
return GT::Date::date_get(time, $format);
}
Now, you can use those tags below in the templates:
<%global_name('%mm%-%dd%-%yyyy%')%>: displays current day
<%global_name('%HH%:%MM%-%ss%')%>: displays current time
Hope that helps,
TheStone.
B.