Skip to content

Commit

Permalink
WIP: Genie example
Browse files Browse the repository at this point in the history
This is on the wait as the waf plugin for Vala does not support Genie
very well.
  • Loading branch information
arteymix committed Jul 16, 2015
1 parent f024940 commit 22f1e0f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/genie/app.gs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[indent=2]
init
var app = new Valum.Router ()

app.get ("/", home)

new VSGI.Soup.Server (app.handle).run ()

def home (req : VSGI.Request, res : VSGI.Response)
res.body.write ("Hello world!".data)
8 changes: 8 additions & 0 deletions examples/genie/wscript_build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env python

bld.program(
target = 'app',
use = 'valum',
source = 'app.gs',
uselib = ['GEE', 'SOUP'],
vapi_dirs = ['../../vapi'])
Empty file.

0 comments on commit 22f1e0f

Please sign in to comment.