Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 683 Bytes

File metadata and controls

37 lines (22 loc) · 683 Bytes

NAME

Nephia::Plugin::View::MicroTemplate - A plugin for Nephia that provides template mechanism

SYNOPSIS

use Nephia plugins => [
    'View::MicroTemplate' => +{
        include_path => [ qw/ view / ],
    },
];


app {
    [200, [], render('index.html', { name => 'myapp' })];
};

DESCRIPTION

Nephia::Plugin::View::MicroTemplate provides render DSL for rendering template.

DSL

render $template_file [, $hashref];

Returns rendered content.

LICENSE

Copyright (C) ytnobody.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

ytnobody [email protected]