require 'innate' class Hello Innate.node '/' TEMPLATE = ' Session example

Session example

Value is: #{ session[:value] }
#{ a :increment }
#{ a :decrement }

'.strip def index session[:value] = 0 TEMPLATE end def increment session[:value] = session[:value].to_i + 1 TEMPLATE end def decrement session[:value] = session[:value].to_i - 1 TEMPLATE end end Innate.start