Template Compiler written in PHP
Switch branches/tags
Nothing to show
Clone or download
Latest commit c4e703f Jun 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes Init commit May 19, 2013
.gitignore Init commit May 19, 2013
LICENSE.md Adds LICENSE file Jun 4, 2018
README.md Adds README file Jun 4, 2018
WTemplate.php Upgrades to v1.0.0 Jun 4, 2018
WTemplateCompiler.php Upgrades to v1.0.0 Jun 4, 2018
WTemplateFile.php Upgrades to v1.0.0 Jun 4, 2018
WTemplateParser.php Upgrades to v1.0.0 Jun 4, 2018
index.html Init commit May 19, 2013

README.md

wityTemplate

PHP Template compiler

Features

  • Variables printing
  • Conditioning
  • Loops
  • Assignments
  • Default values
  • etc.

Sample code

{for $language in $languages}
	<tr data-reordable-id="{$language.id}">
		<td>{$language.id}</td>
		<td><strong>{$language.name}</strong></td>
		<td>{$language.iso}</td>
		<td>{$language.code}</td>
		<td>
			{if {$language.enabled} == 0}
				<span class="glyphicon glyphicon-ban-circle" aria-hidden="true" style="color:red"></span>
			{else}
				<span class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:green"></span>
			{/if}
		</td>
	</tr>
{/for}