Class Raggle::HTML::Renderer
In: raggle  (CVS)
Parent: Object

Text-mode HTML renderer.

Methods

Attributes

rendered_text  [R] 

Public Class methods

Public Instance methods

Force line break.

Insert reference to the latest link into the rendered text.

Append paragraph break, unless there is one already.

Append paragraph break

Save href of the current tag (if it exists) unless duplicate link exists.

Execute actions defined for tag in this phase.

actions:actions set
tag:tag from tag set
phase:either +:start+ or +:end+
params:params passed to the actions

Enter to context defined by tag (if any)

context:current context stack
tag:tag from tag set

Exit from context defined by tag (if any)

context:current context stack
tag:tag from tag set

Reflow text, and append the result to lines

lines:line array representing lines on screen
text:text to be reflown
width:maximum width of each line on screen

Renders HTML in src to a screen with maximum width width. Returns String containing rendered text.

src:HTML source
width:Screen width

[Validate]