Mason::Plugin::HTMLFilters(3pm) User Contributed Perl Documentation Mason::Plugin::HTMLFilters(3pm)NAME
Mason::Plugin::HTMLFilters - Filters related to HTML generation
FILTERS
HTML or H
Do a basic HTML escape on the content - just the characters '&', '>', '<', and '"'.
<input name="company" value="<% $company | H %>">
HTMLEntities
Do a comprehensive HTML escape on the content, using HTML::Entities::encode_entities.
URI or U
URI-escape the content.
<a href="<% $url | U %>">
HTMLPara
Formats a block of text into HTML paragraphs. A sequence of two or more newlines is used as the delimiter for paragraphs which are
then wrapped in HTML ""<p>""...""</p>"" tags. Taken from Template::Toolkit. e.g.
% $.HTMLPara {{
First paragraph.
Second paragraph.
% }}
outputs:
<p>
First paragraph.
</p>
<p>
Second paragraph.
</p>
HTMLParaBreak
Similar to HTMLPara above, but uses the HTML tag sequence "<br><br>" to join paragraphs. Taken from Template::Toolkit. e.g.
% $.HTMLPara {{
First paragraph.
Second paragraph.
% }}
outputs:
First paragraph.
<br><br>
Second paragraph.
FillInForm ($form_data, %options)
Uses HTML::FillInForm to fill in the form with the specified $form_data and %options.
% $.FillInForm($form_data, target => 'form1') {{
...
<form name='form1'>
...
% }}
SUPPORT
The mailing list for Mason and Mason plugins is mason-users@lists.sourceforge.net. You must be subscribed to send a message. To subscribe,
visit https://lists.sourceforge.net/lists/listinfo/mason-users <https://lists.sourceforge.net/lists/listinfo/mason-users>.
You can also visit us at "#mason" on <irc://irc.perl.org/#mason>.
Bugs and feature requests will be tracked at RT:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mason-Plugin-HTMLFilters
bug-mason-plugin-htmlfilters@rt.cpan.org
The latest source code can be browsed and fetched at:
http://github.com/jonswar/perl-mason-plugin-htmlfilters
git clone git://github.com/jonswar/perl-mason-plugin-htmlfilters.git
SEE ALSO
Mason
perl v5.14.2 2012-06-11 Mason::Plugin::HTMLFilters(3pm)
Check Out this Related Man Page
Locale::Maketext::Extract::Plugin::Mason(3pm) User Contributed Perl Documentation Locale::Maketext::Extract::Plugin::Mason(3pm)NAME
Locale::Maketext::Extract::Plugin::Mason - HTML::Mason (aka Mason 1) and Mason (aka Mason 2) format parser
SYNOPSIS
$plugin = Locale::Maketext::Extract::Plugin::Mason->new(
$lexicon # A Locale::Maketext::Extract object
@file_types # Optionally specify a list of recognised file types
)
$plugin->extract($filename,$filecontents);
DESCRIPTION
Extracts strings to localise from Mason files.
SHORT PLUGIN NAME
mason
VALID FORMATS
HTML::Mason (aka Mason 1)
Strings inside <&|/l>...</&> and <&|/loc>...</&> are extracted.
Mason (aka Mason 2) Strings inside <% $.floc { %>...</%> or <% $.fl { %>...</%> or <% $self->floc { %>...</%> or <% $self->fl { %>...</%>
are extracted.
KNOWN FILE TYPES
All file types
SEE ALSO
xgettext.pl
for extracting translatable strings from common template systems and perl source files.
Locale::Maketext::Lexicon
Locale::Maketext::Extract::Plugin::Base
Locale::Maketext::Extract::Plugin::FormFu
Locale::Maketext::Extract::Plugin::Perl
Locale::Maketext::Extract::Plugin::TT2
Locale::Maketext::Extract::Plugin::YAML
Locale::Maketext::Extract::Plugin::TextTemplate
Locale::Maketext::Extract::Plugin::Generic
AUTHORS
Audrey Tang <cpan@audreyt.org>
COPYRIGHT
Copyright 2002-2008 by Audrey Tang <cpan@audreyt.org>.
This software is released under the MIT license cited below.
The "MIT" License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
perl v5.14.2 2011-07-20 Locale::Maketext::Extract::Plugin::Mason(3pm)