1Text::Xslate::Util(3) User Contributed Perl DocumentationText::Xslate::Util(3)
2
3
4

NAME

6       Text::Xslate::Util - A set of utilities for Xslate
7

SYNOPSIS

9           use Text::Xslate::Util qw(
10               mark_raw
11               unmark_raw
12               html_escape
13               uri_escape
14               p
15               html_builder
16               hash_with_default
17           );
18

DESCRIPTION

20       This module provides utilities for Xslate.
21

INTERFACE

23   Exportable functions
24       "mark_raw($str)"
25
26       This is the entity of the "mark_raw" filter.
27
28       "unmark_raw($str)"
29
30       This is the entity of the "unmark_raw" filter.
31
32       "html_escape($str)"
33
34       This is the entity of the "html_escape" filter.
35
36       "uri_escape($str)"
37
38       This is the entity of the "uri" filter.
39
40       "p($any)" / "dump($any)"
41
42       Displays the contents of $any using "Data::Dumper".
43
44       This is the entity of the "dump" filter, useful for debugging.
45
46       "html_builder { block } | \&function :CodeRef"
47
48       Wraps a block or &function with "mark_raw" so that the new subroutine
49       will return a raw string.
50
51       This function is the same as what Text::Xslate exports.
52
53       "hash_with_default \%hash, $default :Any"
54
55       Set a default value $default to %hash and returns a HashRef.
56
57       This is provided for debugging.
58

SEE ALSO

60       Text::Xslate
61
62
63
64perl v5.32.0                      2020-07-28             Text::Xslate::Util(3)
Impressum