Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 701 Bytes
package html
class Example implements HtmlUtils {
function generateHtml() : String {
return html(
:head = head(
:title = "XML encoding with Gosu"
),
:body = {
h1( "XML encoding with Gosu" ),
p( "this format can be used as an alternative markup to XML" ),
/* an element with attributes and text content */
ahref( 'http://gosu-lang.org', "Gosu"),
/* mixed content */
p({
"This is some",
b("mixed"),
"text. For more see the",
ahref('http://gosu-lang.org', "Gosu"),
"project"
}),
p( "some text" )
}
)
}
}