Stream wrapper to convert markup of mostly-PHP templates into PHP prior to include().

Based in large part on the example at http://www.php.net/manual/en/function.stream-wrapper-register.php

As well as the example provided at: http://mikenaberezny.com/2006/02/19/symphony-templates-ruby-erb/ written by Mike Naberezny (@link http://mikenaberezny.com) Paul M. Jones (@link http://paul-m-jones.com)

package Default

 Methods

Tells if we are at the end of the stream.

stream_eof() : boolean

Returns

boolean

Opens the script file and converts markup.

stream_open(string $path, $mode, $options, $opened_path) : boolean

Parameters

$path

string

$mode

$options

$opened_path

Returns

boolean

Reads from the stream.

stream_read(integer $count) : string

Parameters

$count

integer

Returns

string

Seek to a specific point in the stream.

stream_seek($offset, $whence) : boolean

Parameters

$offset

$whence

Returns

boolean

Stream statistics.

stream_stat() : array

Returns

array

Tells the current position in the stream.

stream_tell() : integer

Returns

integer

Included so that __FILE__ returns the appropriate info

url_stat() : array

Returns

array

 Properties

 

Data for streaming.

$data : string

Default

 

Current stream position.

$pos : integer

Default

0
 

Stream stats.

$stat : array

Default