Method | Description | |
---|---|---|
parseFile ( string $file, array $tokens = [] ) : string | Load a file and parse the the content. | |
parseString ( string $script, array $tokens = [] ) : string | Parse a string to replace the tokens. |
Method | Description | |
---|---|---|
tidyScript ( string $script ) : string | Cleans up things which are only in the script to make it easy to read but don't need to be sent to the server, i.e. comments. |