my eye

Add scaffold of null site

Committed c71464

--- a/web/__main__.py
+++ b/web/__main__.py

         return 0
 
 
+@main.register()
+class Scaffold:
+    """Scaffold the null site."""
+
+    def run(self, stdin, log):
+        example_py = pathlib.Path("example.py")
+        if example_py.exists():
+            print("example.py already exists")
+            return 1
+        with example_py.open("w") as fp:
+            fp.write(
+                '''"""A null site."""
+
+import web
+
+app = web.application(__name__)
+
+@app.control("")
+class Home:
+    def get(self):
+        return
+'''
+            )
+        return 0
+
+
 if __name__ == "__main__":
     main()