Flat-Frog - the faster compiling PHP template engine

Functions


assign

Description

This function will create a new variable from the template and assign a value to it.

Arguments

Example

	TEMPLATE
	=============================
	<% assign name="test" value="this is a test variable"|upper %>
	The value of $test is <% $test %>.

	OUTPUT
	=============================
	The value of $test is THIS IS A TEST VARIABLE.
	


config_load

Description

This function will load a config file into a template.

Arguments

Example

	EXAMPLE
	=============================
	<% config_load file="config.conf" %>
	<% #variable# %>
	


foreach/foreachelse

Description

Much as the name describes, this function behaves almost exactly like foreach. It will loop through an array and return the output.

Arguments