Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ysasaki committed Sep 19, 2012
0 parents commit 4b08feb
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
@@ -0,0 +1,12 @@
META.yml
Makefile
Makefile.old
MANIFEST.bak
pm_to_blib
blib
*~
.*
!.gitignore
!.shipit
MYMETA.yml
MYMETA.json
4 changes: 4 additions & 0 deletions Changes
@@ -0,0 +1,4 @@
Revision history for Perl extension Text::Xslate::Bridge::FillInForm::Lite.

0.01 Wed Sep 19 16:47 2012
- original version; created by h2xs 1.23 with options
6 changes: 6 additions & 0 deletions MANIFEST
@@ -0,0 +1,6 @@
Changes
lib/Text/Xslate/Bridge/FillInForm/Lite.pm
Makefile.PL
MANIFEST This list of files
README
t/000_compile.t
17 changes: 17 additions & 0 deletions Makefile.PL
@@ -0,0 +1,17 @@
use 5.008_001;
use ExtUtils::MakeMaker;

WriteMakefile(
NAME => 'Text::Xslate::Bridge::FillInForm::Lite',
VERSION_FROM => 'lib/Text/Xslate/Bridge/FillInForm/Lite.pm',
PREREQ_PM => {
'Text::Xslate' => 0,
'HTML::FillInForm::Lite' => 0,
},
( $] >= 5.005
? ( ABSTRACT_FROM => 'lib/Text/Xslate/Bridge/FillInForm/Lite.pm',
AUTHOR => 'Yoshihiro Sasaki <ysasaki at cpan.org>'
)
: ()
),
);
39 changes: 39 additions & 0 deletions README
@@ -0,0 +1,39 @@
Text-Xslate-Bridge-FillInForm-Lite version 0.01
===============================================

The README is used to introduce the module and provide instructions on
how to install the module, any machine dependencies it may have (for
example C compilers and installed libraries) and any other information
that should be provided before the module is installed.

A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

This module requires these other modules and libraries:

Text::Xslate
HTML::FillInForm::Lite

COPYRIGHT AND LICENCE

Put the correct copyright and licence information here.

Copyright (C) 2012 by Yoshihiro Sasaki

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.14.2 or,
at your option, any later version of Perl 5 you may have available.
61 changes: 61 additions & 0 deletions lib/Text/Xslate/Bridge/FillInForm/Lite.pm
@@ -0,0 +1,61 @@
package Text::Xslate::Bridge::FillInForm::Lite;

use 5.008_001;
use strict;
use warnings;
use base qw(Text::Xslate::Bridge);

use Text::Xslate qw(html_builder);
use HTML::FillInForm::Lite qw(fillinform);

our $VERSION = '0.01';

# copied from Text/Xslate/Manual/Cookbook.pod#Using_FillInForm
__PACKAGE__->bridge(
function => { fillinform => html_builder( \&fillinform ) } );

1;
__END__
=head1 NAME
Text::Xslate::Bridge::FillInForm::Lite - HTML::FillInForm::Lite 'fillinform' for Text::Xslate
=head1 SYNOPSIS
use Text::Xslate;
my $tx = Text::Xslate->new(
module => ['Text::Xslate::Bridge::FillInForm::Lite'],
);
# this is same as below
use Text::Xslate;
use HTML::FillInForm::Lite qw(fillinform);
my $tx = Text::Xslate->new(
function => { fillinform => html_builder(\&fillinform) },
);
=head1 DESCRIPTION
Text::Xslate::Bridge::FillInForm::Lite provides fillinform function for Text::Xslate. You can set fillinform function using HTML::FillInForm::Lite by yourself.
But you cannot set user defined functions in some situation(e.g. Dancer::Template::Xslate is so)
=head1 SEE ALSO
L<Text::Xslate>, L<HTML::FillInForm::Lite>, L<Dancer::Template::Xslate>
=head1 AUTHOR
Yoshihiro Sasaki, E<lt>ysasaki at cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2012 by Yoshihiro Sasaki
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.14.2 or,
at your option, any later version of Perl 5 you may have available.
=cut
5 changes: 5 additions & 0 deletions t/000_compile.t
@@ -0,0 +1,5 @@
use strict;
use warnings;

use Test::More tests => 1;
BEGIN { use_ok('Text::Xslate::Bridge::FillInForm::Lite') };

0 comments on commit 4b08feb

Please sign in to comment.