Commits

Richard Shea committed b33aee8

Adding some more outputs

  • Participants
  • Parent commits 3dab48d

Comments (0)

Files changed (4)

File dominate/examples/000-demo-build-html-A.py

 
 
 def build_html():
-    print html(body(h1('Hello, World!')))
+    return html(body(h1('Hello, World!')))
 
 
 def main():

File dominate/output/000-demo-build-html-A.html

+<html>
+  <body>
+    <h1>Hello, World!</h1>
+  </body>
+</html>

File dominate/output/001-demo-build-document-A.html

+<!DOCTYPE html>
+<html>
+  <head>
+    <title>NZPUG Demo - March 2014</title>
+  </head>
+  <body></body>
+</html>

File dominate/output/002-demo-build-document-A.html

+<!DOCTYPE html>
+<html>
+  <head>
+    <title>NZPUG Demo - March 2014</title>
+  </head>
+  <body>
+    <h1>Hello, Wellington NZPUG!</h1>
+    <p>This is a paragraph.</p>
+  </body>
+</html>