NAME

App::Stouch::Template - stouch template rendering

SYNOPSIS

use App::Stouch::Template qw(render_file render_directory);

render_file($template, $out, $param);
render_directory($template, $out, $param);

DESCRIPTION

App::Stouch::Template is a module designed to perform simple template rendering for stouch. You should probably be reading its documentation instead of this.

SUBROUTINES

View the documentation for stouch for more information on how template rendering works.

No subroutines are exported by default.

render_file($in, $out, $param)

Renders template file $in, writing output to $out. $param is a hash ref of template text substitution parameters.

Returns $out.

render_directory($in, $out, $param)

Renders template directory $out, placing output in $out. $param is a hash ref of template text substitution parameters.

render_directory works by readdiring $in, calling render_directory for every directory and render_file for every normal file.

Returns array of files created.

AUTHOR

Written by Samuel Young, samyoung12788@gmail.com.

COPYRIGHT

Copyright 2024, Samuel Young

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

SEE ALSO

stouch