File: README

package info (click to toggle)
libmason-plugin-htmlfilters-perl 0.03-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, jessie-kfreebsd, sid, stretch, wheezy
  • size: 112 kB
  • ctags: 6
  • sloc: perl: 87; makefile: 7
file content (88 lines) | stat: -rw-r--r-- 2,327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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.

    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
        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