GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Text::MicroTemplate::File(3) User Contributed Perl Documentation Text::MicroTemplate::File(3)

Text::MicroTemplate::File - a file-based template manager

    use Text::MicroTemplate::File;

    our $mtf = Text::MicroTemplate::File->new(
        include_path => [ $path1, $path2, ... ],
        use_cache    => 1,
    );

    # render
    $mtf->render_file('template.file', $arg1, $arg2, ...);

Text::MicroTemplate::File is a file-based template manager for Text::MicroTemplate.

Text::MicroTemplate provides OO-style interface with following properties.

include path (default: ['.'])

This accessor is readonly.

cache mode (0: no cache (default), 1: cache with update check, 2: cache but do not check updates)

layer passed to open (default: ":utf8")

package under where template files are compiled (default: "main")

Returns a subref that renders given template file.

Renders the template file with given arguments.

Wraps given template with wrapper file. Internally the processed template is passed as $_[0] to the wrapper template.

Text::MicroTemplate

Kazuho Oku <kazuhooku gmail.com>

This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.
2015-04-23 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.