A minimalistic renderer for a web page.

This serves for visualizing and demonstrating the feature-php library. It is recommended to develop your own renderers in production.

package Default

 Methods

Returns the renderer's web page.

render(boolean $textOnly = false) : string

Parameters

$textOnly

boolean

whether to render text or HTML

Returns

string

Returns the renderer's web page as text only.

renderText() : string

This is used by the command-line interface.

Returns

string

Internal function for returning the renderer's web page.

_render(boolean $textOnly) : string

Parameters

$textOnly

boolean

whether to render text or HTML

Returns

string

Returns a simple stylesheet.

getStyle() : string

Returns

string

 Properties

 

accent color for text only rendering

$accentColor : string

Default

"\033[1;33m"
 

default color for text only rendering

$defaultColor : string

Default

"\033[0m"