lapis = require "lapis" require "models.user" class App extends lapis.Application layout: require "layout.bootstrap" @include "controllers.users" @include "controllers.freeswitch" @before_filter => @current_user = Users\read_session @ if @session.flash @flash = @session.flash @session.flash = nil [index: "/"]: => @name = @session.name render: true