Templates can do all this. You'll need to learn how to modify templates, how to use the Template language, etc. For this task, Template comes with a date plugin. So you could, for example, do:
[% USE date; date.format(date.now, "%A, %B %d, %Y") %]
Yeah, good call. I was just thinking of a more general Template solution, but in Slash, the date plugin is rarely needed, since Slash.timeCalc() does what you need most of the time.
Krow, but I think Slash.timeCalc() does not work from within a template (it works from a.pl) so Pudge's code above seems like the only way to go (he provided that solution to on #slash me a few weeks ago.)
Templates (Score:2)
[% USE date; date.format(date.now, "%A, %B %d, %Y") %]
Re:Templates (Score:2)
--
You can't grep a dead tree.
Re:Templates (Score:2)
Re:Templates (Score:1)
Re:Templates (Score:2)
[% USE Slash %]
--
You can't grep a dead tree.