require 'innate' module Flustered class Core include Innate::Node layout 'default' provide :html, :engine => :haml def css(name, options={}) options[:rel] ||= 'stylesheet' options[:type] ||= 'text/css' options[:media] ||= 'screen' tag = %Q{} tag = %Q{} if options[:where] tag % [options[:rel], options[:type], options[:media], name] end def js(name, type='text/javascript') tag = %Q{} tag % [type, name] end def index end def self.run root=File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'app')) Innate.options[:roots] << root Innate.middleware! :dev do |m| m.innate end Innate.start :root => root, :mode => :dev end end end