Skip to content

Bare bone templating system for text strings, based on Latte syntax

License

Notifications You must be signed in to change notification settings

davee8k/slim-plate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SlimPlate

Description

Bare bone templating system for text strings, based on Latte syntax

Requirements

  • PHP 7.1+ (PHP 5.4+ for version 0.85 and older)

Usage

SlimPlate support basic if/else statesments, integers, $variables and $object->variable syntax.

$t = new SlimPlate('{if $x > 5}YES{/if} {if $a == $b}no{else}yes{/if}');
$t->render(['x'=>6, 'a'=>'yes', 'b'=>'no']);
returns: "YES yes"

About

Bare bone templating system for text strings, based on Latte syntax

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages