Skip to content

Instantly share code, notes, and snippets.

@darkfrog26
Created July 24, 2015 15:12
Show Gist options
  • Save darkfrog26/2dfab87a4cd25d678e20 to your computer and use it in GitHub Desktop.
Save darkfrog26/2dfab87a4cd25d678e20 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Testing</title>
</head>
<body>
<div id="heading">Heading</div>
<div id="contents">
<div id="one"></div>
<div id="two"></div>
</div>
</body>
</html>
class Example extends Webpage {
val heading = new tag.Div(id = "heading", content = "Heading")
val contents = new tag.Div(id = "contents")
val one = new tag.Div(id = "one")
val two = new tag.Div(id = "two")
title := "Testing"
body.contents += heading
contents += one
contents += two
body.contents += contents
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment