Skip to content
Permalink
Browse files

Add example folder

  • Loading branch information...
Raggaer committed Jun 10, 2019
1 parent 255a0bb commit cb29bf2134d9d8e7178bc71807917cd61e3003ed
Showing with 18 additions and 0 deletions.
  1. +6 −0 example/config.lua
  2. +2 −0 example/controllers/home.lua
  3. +7 −0 example/router.lua
  4. +1 −0 example/views/home.html
  5. +2 −0 run_example.sh
@@ -0,0 +1,6 @@
local config = {
address = ':8080',
devMode = true,
}

return config
@@ -0,0 +1,2 @@
local tpl = require('template')
tpl.render('home.html')
@@ -0,0 +1,7 @@
local router = {
['/home'] = {
get = 'home.lua'
}
}

return router
@@ -0,0 +1 @@
Hello World
@@ -0,0 +1,2 @@
#!/bin/bash
./bison -config "example/config.lua" -controllers "example/controllers" -router "example/router.lua" -views "example/views"

0 comments on commit cb29bf2

Please sign in to comment.
You can’t perform that action at this time.