Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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}

About

Template Compiler written in PHP

Resources

License

Packages

No packages published

Languages