Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Text::Xslate::Util

Name Text::Xslate::Util
Version
Located at /usr/lib/x86_64-linux-gnu/perl5/5.34
File /usr/lib/x86_64-linux-gnu/perl5/5.34/Text/Xslate/Util.pm
Is Core No
Search CPAN for this module Text::Xslate::Util
Documentation Text::Xslate::Util
Module Details Text::Xslate::Util

NAME

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


SYNOPSIS

    use Text::Xslate::Util qw(
        mark_raw
        unmark_raw
        html_escape
        uri_escape
        p
        html_builder
        hash_with_default
    );


DESCRIPTION

This module provides utilities for Xslate.


INTERFACE

Exportable functions

mark_raw($str)

This is the entity of the mark_raw filter.

unmark_raw($str)

This is the entity of the unmark_raw filter.

html_escape($str)

This is the entity of the html_escape filter.

uri_escape($str)

This is the entity of the uri filter.

p($any) / dump($any)

Displays the contents of $any using Data::Dumper.

This is the entity of the dump filter, useful for debugging.

html_builder { block } | \&function :CodeRef

Wraps a block or &function with mark_raw so that the new subroutine will return a raw string.

This function is the same as what Text::Xslate exports.

hash_with_default \%hash, $default :Any

Set a default value $default to %hash and returns a HashRef.

This is provided for debugging.


SEE ALSO

the Text::Xslate manpage

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026