Super Easy PHP Templating  1.0
Templating for basic sites is too complicated for basic websites. This is a simple templating system to allow for reusing HTML templates without all the extra fluff.
 All Data Structures Files Functions Variables
SEPTTheme Class Reference

Public Member Functions

 __construct ($themeURL)
 
 StartBlock ($blockName)
 
 EndBlock ()
 
 SetBlock ($blockName, $data)
 
 RenderPage ()
 

Static Public Member Functions

static Generate ($themeURL)
 

Constructor & Destructor Documentation

__construct (   $themeURL)

Create the SEPTTheme class

Parameters
stringthemeURL URL to the PHP file to be used as the theme

Member Function Documentation

EndBlock ( )

Finish recording of the current block

static Generate (   $themeURL)
static

Generate a new SEPTTheme instance

Parameters
stringthemeURL URL to the PHP file to be used as the theme
Returns
The new created instance
RenderPage ( )

Build and output the final page generated by the theme

SetBlock (   $blockName,
  $data 
)

Directly set the HTML instead of using the Start/End methods

Parameters
stringblockName Name of block to be inserted
stringdata data to pass to the theme
StartBlock (   $blockName)

Start recording the HTML (or equivalent) to be entered into this block

Parameters
stringblockName Name of block to be inserted

The documentation for this class was generated from the following file: