Class: Flustered::Core
- Includes:
- Innate::Node
- Defined in:
- lib/flustered/core.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#css(name, options = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/flustered/core.rb', line 9 def css(name, ={}) [:rel] ||= 'stylesheet' [:type] ||= 'text/css' [:media] ||= 'screen' tag = %Q{<link rel="%s" type="%s" media="%s" href="style/css/%s.css"/>} tag = %Q{<!--[if #{[:where]}]>#{tag}<![endif]-->} if [:where] tag % [[:rel], [:type], [:media], name] end |
#index ⇒ Object
25 26 |
# File 'lib/flustered/core.rb', line 25 def index end |
#js(name, type = 'text/javascript') ⇒ Object
20 21 22 23 |
# File 'lib/flustered/core.rb', line 20 def js(name, type='text/javascript') tag = %Q{<script type="%s" src="style/js/%s.js"></script>} tag % [type, name] end |