Giter VIP home page Giter VIP logo

mason-plugin-htmlfilters's Introduction

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
    [email protected]. You must be subscribed to send a
    message. To subscribe, visit
    https://lists.sourceforge.net/lists/listinfo/mason-users.

    You can also visit us at `#mason' on irc:.

    Bugs and feature requests will be tracked at RT:

        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mason-Plugin-HTMLFilters
        [email protected]

    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

mason-plugin-htmlfilters's People

Contributors

jonswar avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.