https://github.com/robrwo/html-formhandlerx-widget-field-template
Use Template Toolkit for rendering fields
https://github.com/robrwo/html-formhandlerx-widget-field-template
Last synced: 29 days ago
JSON representation
Use Template Toolkit for rendering fields
- Host: GitHub
- URL: https://github.com/robrwo/html-formhandlerx-widget-field-template
- Owner: robrwo
- Created: 2017-10-30T10:34:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T17:41:41.000Z (over 6 years ago)
- Last Synced: 2025-02-16T17:56:48.593Z (4 months ago)
- Language: Perl
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
HTML::FormHandlerX::Widget::Field::Template - render fields using templates
# VERSION
version v0.1.2
# SYNOPSIS
In a form class:
```perl
has_field foo => (
widget => 'Template',
template_args => sub {
my ($field, $args) = @_;
...
},
);sub template_renderer {
my ( $self, $field ) = @_;return sub {
my ($args) = @_;my $field = $args->{field};
...
};
}
```# DESCRIPTION
This is an [HTML::FormHandler](https://metacpan.org/pod/HTML::FormHandler) widget that allows you to use a
template for rendering forms instead of Perl methods.# SEE ALSO
- [HTML::FormHandler](https://metacpan.org/pod/HTML::FormHandler)
- [Template](https://metacpan.org/pod/Template)# SOURCE
The development version is on github at [https://github.com/robrwo/HTML-FormHandlerX-Widget-Field-Template](https://github.com/robrwo/HTML-FormHandlerX-Widget-Field-Template)
and may be cloned from [git://github.com/robrwo/HTML-FormHandlerX-Widget-Field-Template.git](git://github.com/robrwo/HTML-FormHandlerX-Widget-Field-Template.git)# BUGS
Please report any bugs or feature requests on the bugtracker website
[https://github.com/robrwo/HTML-FormHandlerX-Widget-Field-Template/issues](https://github.com/robrwo/HTML-FormHandlerX-Widget-Field-Template/issues)When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.# AUTHOR
Robert Rothenberg
The initial development of this module was sponsored by Science Photo
Library [https://www.sciencephoto.com](https://www.sciencephoto.com).# CONTRIBUTOR
Mohammad S Anwar
# COPYRIGHT AND LICENSE
This software is copyright (c) 2017-2018 by Robert Rothenberg.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.