added basic example

This commit is contained in:
tipsy
2015-04-24 22:05:59 +02:00
parent eafaf6fa1f
commit b567dafbf5

View File

@@ -0,0 +1,27 @@
//Java Code
html().with(
head().with(
title().withText("Title"),
link().withRel("stylesheet").withHref("/css/main.css")
),
body().with(
main().with(
h1().withText("Heading!")
)
)
).render();
/* Rendered HTML
<html>
<head>
<title>Title</title>
<link rel="stylesheet" href="/css/main.css">
</head>
<body>
<main>
<h1>Heading!</h1>
</main>
</body>
<html>
*/