Text::Xslate::Util(3pm)

Text::Xslate::Util3pm

A set of utilities for xslate

Usage

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

Overview

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From libtext-xslate-perl 3.5.9-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.