Amanu
Projektmanagement für Selbstständige und Freelancer
ScriptByTemplate Class Reference

Public Member Functions

 __construct ($filename)
 
 render ()
 

Private Member Functions

 replaceMarkers ($filecont)
 

Detailed Description

Class, that reads .jst files, compiles them to js and writes them back to disc

This file is part of the project codename "AMANUENSIS"

Author
Sebastian Antosch s.ant.nosp@m.osch.nosp@m.@i-sa.nosp@m.n.de

Constructor & Destructor Documentation

__construct (   $filename)

Creates an instance of the class referenzing a .jst file

Parameters
$filename- the filename of the .jst file in the scriptybytemplate directory

Member Function Documentation

render ( )

Reads the .jst file, replaces the marker with the values from the config file

Returns
String - the path to the destinationfile
Exceptions
Exception- for failing file system operations
replaceMarkers (   $filecont)
private

Fills a template with strings from the config

Parameters
$filecont- The template string that contains the markers that should be repalced
Returns
String - the parsed file content

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