Module: LayoutHelper
- Defined in:
- lib/huge-boilerplate-middleman/huge/helpers/layout.rb
Instance Method Summary collapse
-
#html_conditional(&block) ⇒ Object
Create a named haml tag to wrap IE conditional around a block paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither Consider adding a manifest.appcache: h5bp.com/d/Offline.
Instance Method Details
#html_conditional(&block) ⇒ Object
Create a named haml tag to wrap IE conditional around a block paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither Consider adding a manifest.appcache: h5bp.com/d/Offline
7 8 9 10 11 12 13 14 15 |
# File 'lib/huge-boilerplate-middleman/huge/helpers/layout.rb', line 7 def html_conditional( &block ) haml_concat " <!--[if lt IE 7]> <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\" lang=\"en\"> <![endif]-->\n <!--[if IE 7]> <html class=\"no-js lt-ie9 lt-ie8\" lang=\"en\"> <![endif]-->\n <!--[if IE 8]> <html class=\"no-js lt-ie9\" lang=\"en\"> <![endif]-->\n <!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"en\"> <!--<![endif]-->\n HTML\n haml_concat capture( &block ) << ( \"\\n</html>\" ) if block_given?\nend\n" |