Codebase list libhtml-auto-perl / 8adc9a6
Imported Upstream version 0.06 gregor herrmann 8 years ago
8 changed file(s) with 37 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
00 Revision history for HTML-Auto
1
2 0.06 Thu Nov 12 20:55:02 WET 2015
3 Handle paths correctly in Windows too (reported by CHORNY).
4
5 0.05 Sun Nov 8 17:27:23 WET 2015
6 Fix tests to run in recent perl releases (reported by SREZIC).
17
28 0.04 Tue Jun 5 16:02:52 WEST 2012
39 Fixed UTF-8 in POD
33 "Nuno Carvalho <smash@cpan.org>"
44 ],
55 "dynamic_config" : 1,
6 "generated_by" : "ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120921",
6 "generated_by" : "ExtUtils::MakeMaker version 7.1, CPAN::Meta::Converter version 2.143240",
77 "license" : [
88 "perl_5"
99 ],
3131 },
3232 "runtime" : {
3333 "requires" : {
34 "File::Basename" : "0",
3435 "Template" : "0",
3536 "Test::More" : "0"
3637 }
3738 }
3839 },
3940 "release_status" : "stable",
40 "version" : "0.04"
41 "version" : "0.06"
4142 }
22 author:
33 - 'Nuno Carvalho <smash@cpan.org>'
44 build_requires:
5 ExtUtils::MakeMaker: 0
5 ExtUtils::MakeMaker: '0'
66 configure_requires:
7 ExtUtils::MakeMaker: 0
7 ExtUtils::MakeMaker: '0'
88 dynamic_config: 1
9 generated_by: 'ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120921'
9 generated_by: 'ExtUtils::MakeMaker version 7.1, CPAN::Meta::Converter version 2.143240'
1010 license: perl
1111 meta-spec:
1212 url: http://module-build.sourceforge.net/META-spec-v1.4.html
13 version: 1.4
13 version: '1.4'
1414 name: HTML-Auto
1515 no_index:
1616 directory:
1717 - t
1818 - inc
1919 requires:
20 Template: 0
21 Test::More: 0
22 version: 0.04
20 File::Basename: '0'
21 Template: '0'
22 Test::More: '0'
23 version: '0.06'
1111 : ()),
1212 PL_FILES => {},
1313 PREREQ_PM => {
14 'Test::More' => 0,
15 'Template' => 0,
14 'File::Basename' => 0,
15 'Test::More' => 0,
16 'Template' => 0
1617 },
1718 dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
1819 clean => { FILES => 'HTML-Auto-*' },
00 HTML-Auto
11
22 This module attempts to provide easy access to some typical structures
3 used in HTML, for example matrixes. The module is still in heavy
3 used in HTML, for example matrices. The module is still in heavy
44 development.
55
66 INSTALLATION
3333 Search CPAN
3434 http://search.cpan.org/dist/HTML-Auto/
3535
36
37 LICENSE AND COPYRIGHT
38
39 Copyright (C) 2010 Nuno Carvalho
40
41 This program is free software; you can redistribute it and/or modify it
42 under the terms of either: the GNU General Public License as published
43 by the Free Software Foundation; or the Artistic License.
44
45 See http://dev.perl.org/licenses/ for more information.
46
33 use warnings;
44 use strict;
55
6 use File::Basename;
7
68 =head1 NAME
79
810 HTML::Auto::Templates - this module stores HTML::Auto templates
1315
1416 =cut
1517
16 our $VERSION = '0.02';
18 our $VERSION = '0.06';
1719
1820 my $templates = {
1921
181183 =cut
182184
183185 sub _template_content {
184 my($self,$path) = @_;
185
186 $path =~ s#^templates/##;
187 $self->debug("get $path") if $self->{DEBUG};
186 my ($self, $path) = @_;
187
188 $path = basename($path);;
189 $self->debug("get $path") if $self->{DEBUG};
188190
189191 my $data = $templates->{$path};
190192 my $error = "error: $path not found";
1818
1919 =head1 VERSION
2020
21 Version 0.04
22
23 =cut
24
25 our $VERSION = '0.04';
21 Version 0.06
22
23 =cut
24
25 our $VERSION = '0.06';
2626
2727
2828 =head1 SYNOPSIS
3131 }
3232
3333 sub clean {
34 my $_ = shift;
35 $_ =~ s/^\s+|\s+$//sg;
36 $_ =~ s/\s+/ /sg;
37 return $_;
34 my ($str) = @_;
35 $str =~ s/^\s+|\s+$//sg;
36 $str =~ s/\s+/ /sg;
37 return $str;
3838 }