static string merge(
array
$templates, [
$str_template = ''], [string
$separator = "\n"]
)
|
|
Merges the content from an array of templates and separates it with $separator.
Parameters:
array |
$templates: |
an array of Template objects to merge |
string |
$separator: |
the string that is used between each Template object |
|
$str_template: |
|
API Tags:
Template __construct(
string
$file
)
|
|
Creates a new Template object and sets its associated file.
Parameters:
string |
$file: |
the filename of the template to load |
API Tags:
string output(
[
$str_template = '']
)
|
|
Outputs the content of the template, replacing the keys for its respective values.
Parameters:
API Tags:
void set(
string
$key, string
$value
)
|
|
Sets a value for replacing a specific tag.
Parameters:
string |
$key: |
the name of the tag to replace |
string |
$value: |
the value to replace |
API Tags: