Skip to content

A plugin for Nephia that provides template mechanism that using Text::Xslate

License

Notifications You must be signed in to change notification settings

nephia/Nephia-Plugin-View-Xslate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

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

SYNOPSIS

use Nephia plugins => [
    'View::Xslate' => +{
        syntax => 'Kolon',
        path   => [ qw/ view / ],
    },
];


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

DESCRIPTION

Nephia::Plugin::View::Xslate 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]

About

A plugin for Nephia that provides template mechanism that using Text::Xslate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages