phpish / template
Capture output of and compose plain old PHP templates
v1.0.1
2020-12-15 09:58 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-12-11 04:26:17 UTC
README
Capture output of and compose plain old PHP templates.
Require and use
<?php require 'vendor/phpish/template/template.php'; use phpish\template; ... ?>
Function Reference
render
string render ( string $template [, array $template_vars [, string $template_dir ]] )
compose
string compose ( string $template , array $template_vars [, $... ] )
basedir
string basedir ( [ string $dir] )
default_basedir
string default_basedir ( void )
filename
string filename ( string $template [, string $template_dir ] )