Sha256: 2b713ca271326723795eec1c30982f37aba4e47d1162d0a1844f114b5b630b26
Contents?: true
Size: 943 Bytes
Versions: 1
Compression:
Stored size: 943 Bytes
Contents
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{<link rel="%s" type="%s" media="%s" href="style/css/%s.css"/>} tag = %Q{<!--[if #{options[:where]}]>#{tag}<![endif]-->} if options[:where] tag % [options[:rel], options[:type], options[:media], name] end def js(name, type='text/javascript') tag = %Q{<script type="%s" src="style/js/%s.js"></script>} 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flustered-0.1.1 | lib/flustered/core.rb |