10 Jul 2016 09:50:11 UTC
- Distribution: App-Templer
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (0)
- Testers (447 / 13 / 2)
- KwaliteeBus factor: 1
- 78.03% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (173.51KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSKX Steve Kemp
Templer::Plugin::TimeStamp - A plugin to get TimeStamp of source files
The following is a good example use of this plugin
title: About my site mtime: timestamp(%Y-%m-%d %H:M:%S) ---- <p>This file has been last modified on <!-- tmpl_var name='mtime' -->.
This plugin allows template variables to be set to the source file modification time. The parameter passed to the function are passed as is to strftime with leading and trailing spaces removed.
This module is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or
b) the Perl "Artistic License".
Bruno BEAUFILS <firstname.lastname@example.org>
Copyright (C) 2015 Bruno BEAUFILS <email@example.com>.
This library is free software. You can modify and or distribute it under the same terms as Perl itself.
Constructor. No arguments are required/supported.
Variables are written in the file in the form "key: value", and are internally stored within the Page object as a hash.
This method iterates over each key & value and updates any that seem to refer to timestamps.