From 4f3e664a2e11c554ba79f1aae965502c556e8207 Mon Sep 17 00:00:00 2001 From: Terrence Branon Date: Thu, 4 Apr 2013 15:26:19 -0400 Subject: [PATCH] provide easy to follow instructions for the sample app --- muntjac/public/index.html | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/muntjac/public/index.html b/muntjac/public/index.html index 93a4104d..06616fcf 100644 --- a/muntjac/public/index.html +++ b/muntjac/public/index.html @@ -206,27 +206,22 @@
Sampler Widget Set
Simple Application
-

To create a Muntjac application first define a subclass of Application:

-
-class HelloWorld(Application):
-
-    def init(self):
-        main = Window('Hello window')
-        self.setMainWindow(main)
-
-        main.addComponent(Label('Hello World!'))
- Pass the new class to ApplicationServlet, - wrap the resulting WSGI application in Paste session middleware and serve: -
-wsgi_app = ApplicationServlet(HelloWorld, debug=True)
-
-wsgi_app = paste.session.SessionMiddleware(wsgi_app)
-
-httpd = make_server('localhost', 8080, wsgi_app)
-httpd.serve_forever()
- Navigate your browser to http://localhost:8080/. For further information please refer to +

To create a Muntjac + application:

+
    +
  1. Follow these instructions
  2. + +
  3. Navigate your + browser to http://localhost:8080/. +
  4. +
+

+ For further information please refer to the API documentation and the Vaadin documentation. +