type

HtmlWriter

src @Js
class HtmlWriter : Obj

HTML writer for markdown rendering

constructors

methods

line

write a newline character if the last character written wasn't a newline

raw

Write the raw string

tag

Write a tag with the given name ("foo" - opening tag, "/foo" - closing tag) with the given attributes.

text

Write the escaped text

w

Slot Details

line

src This line()

write a newline character if the last character written wasn't a newline

make

src new make(OutStream out)

raw

src This raw(Str s)

Write the raw string

tag

src This tag(Str name, [Str:Str?]? attrs := null, Bool empty := false)

Write a tag with the given name ("foo" - opening tag, "/foo" - closing tag) with the given attributes. If empty is true an empty tag is written (e.g. <img />)

text

src This text(Str text)

Write the escaped text

w

src protected This w(Str s)