#!/usr/bin/env rackup -s thin -p 4000
# encoding: utf-8

require_relative "init"

use Rango::Middlewares::Basic
run Project.router

#!/usr/bin/env rackup -s thin -p 4000
# encoding: utf-8

require_relative "init"

require "rango/gv"
require "pupu/helpers"

Rango::Router.use(:usher)

# register helpers
Rango::GV::View.send(:include, Pupu::Helpers)

Project.router = Usher::Interface.for(:rack) do
  get("/").to(Rango::GV.static {"index"})
  get("/examples/:template").to(Rango::GV.static { |template| "examples/#{template}" })
end

# rack stack
use Rango::Middlewares::Basic
run Project.router

Use generic views so we don't have to implement any controllers
Use generic views so we don't have to implement any controllers
