Created
July 24, 2015 15:12
-
-
Save darkfrog26/2dfab87a4cd25d678e20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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