Fat-Free Framework: Template Class Reference

Fat-Free-Framework

Fat-Free Framework  3.1.0 API Reference

Template engine. More...

Inheritance diagram for Template:
View Prefab

Public Member Functions

 token ($str)
 
 extend ($tag, $func)
 
 __call ($func, array $args)
 
 render ($file, $mime='text/html', array $hive=NULL)
 
- Public Member Functions inherited from View
 render ($file, $mime='text/html', array $hive=NULL)
 

Public Attributes

 $tags
 Template tags.
 
 $custom =array()
 Custom tag handlers.
 
const E_Method ='Call to undefined method %s()'
 
- Public Attributes inherited from View
 $hive
 Local hive.
 

Protected Member Functions

 _set (array $node)
 
 _include (array $node)
 
 _exclude ()
 
 _ignore (array $node)
 
 _loop (array $node)
 
 _repeat (array $node)
 
 _check (array $node)
 
 _true (array $node)
 
 _false (array $node)
 
 _switch (array $node)
 
 _case (array $node)
 
 _default (array $node)
 
 build ($node)
 
- Protected Member Functions inherited from View
 sandbox ()
 

Protected Attributes

 $mime
 MIME type.
 
- Protected Attributes inherited from View
 $view
 Template file.
 

Additional Inherited Members

- Static Public Member Functions inherited from Prefab
static instance ()
 

Detailed Description

Template engine.

Member Function Documentation

Template::__call (   $func,
array  $args 
)

Call custom tag handler

Returns
string|FALSE
Parameters
$funccallback
$argsarray
Template::_case ( array  $node)
protected

Template -case- tag handler

Returns
string
Parameters
$nodearray
Template::_check ( array  $node)
protected

Template -check- tag handler

Returns
string
Parameters
$nodearray
Template::_default ( array  $node)
protected

Template -default- tag handler

Returns
string
Parameters
$nodearray
Template::_exclude ( )
protected

Template -exclude- tag handler

Returns
string
Template::_false ( array  $node)
protected

Template -false- tag handler

Returns
string
Parameters
$nodearray
Template::_ignore ( array  $node)
protected

Template -ignore- tag handler

Returns
string
Parameters
$nodearray
Template::_include ( array  $node)
protected

Template -include- tag handler

Returns
string
Parameters
$nodearray
Template::_loop ( array  $node)
protected

Template -loop- tag handler

Returns
string
Parameters
$nodearray
Template::_repeat ( array  $node)
protected

Template -repeat- tag handler

Returns
string
Parameters
$nodearray
Template::_set ( array  $node)
protected

Template -set- tag handler

Returns
string
Parameters
$nodearray
Template::_switch ( array  $node)
protected

Template -switch- tag handler

Returns
string
Parameters
$nodearray
Template::_true ( array  $node)
protected

Template -true- tag handler

Returns
string
Parameters
$nodearray
Template::build (   $node)
protected

Assemble markup

Returns
string
Parameters
$nodearray|string
Template::extend (   $tag,
  $func 
)

Extend template with custom tag

Returns
NULL
Parameters
$tagstring
$funccallback
Template::render (   $file,
  $mime = 'text/html',
array  $hive = NULL 
)

Render template

Returns
string
Parameters
$filestring
$mimestring
$hivearray
Template::token (   $str)

Convert token to variable

Returns
string
Parameters
$strstring

The documentation for this class was generated from the following file:
  • template.php
Generated on Mon Aug 19 2013 21:27:51 for Fat-Free Framework by   doxygen 1.8.4