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::Site::Asset - An interface to a site asset.
use strict; use warnings; use Templer::Site::Asset; my $page = Templer::Site::Asset->new( file => "./input/robots.txt" );
An asset is anything beneath the input directory which is *not* a page.
Assuming we're not running in "in-place" mode then assets are copied over to a suitable filename in the output tree.
templerthe page objects are created by the Templer::Site module.
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".
Steve Kemp <email@example.com>
Copyright (C) 2012-2015 Steve Kemp <firstname.lastname@example.org>.
This library is free software. You can modify and or distribute it under the same terms as Perl itself.
The single appropriate argument is the hash-key "file", pointing to the file on-disk.
Return the filename we were built from. This is the value passed in the constructor.