html

html(x,options) generates an html page with the content of x.

Html syntax

x = 'hello world'
html(x)
hello world

Css styles defined

x = '<div style="display:block;"><p style="color:#007399">First paragraph</p>
<p style="font: 15px arial, sans-serif;">Second Paragraph</p></div>'
html(x)

First paragraph

Second Paragraph

Options

x = '<div style="display:block;"><p style="color:#007399">Hello World</p>
<p style="font: 15px arial, sans-serif;">Some html code</p></div>'
options = struct
options.width = 350
html(x,options)

Hello World

Some html code

See also

assemble