Skip to content

josefburger/PhpSimpleTemplateEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Simple Template Engine

Simple template engine written in PHP.

Demo

Simple example of use:

$te = new TemplateEngine(
    '<strong>{{user.name}} <u>{{user.age}}</u></strong>: Lorem ipsum dolor {{name}} amet. {{not-existing}} and empty {{}}. '
);

$te->addParameter('name', 'New York');
$te->addParameters(Array('name' => 'John Doe', 'age' => '54'), 'user.');

echo $te->render();

and result:

<strong>John Doe <u>54</u></strong>: Lorem ipsum dolor New York amet. {{not-existing}} and empty {{}}.

About

Simple template engine written in PHP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages