Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
Last active December 25, 2015 19:49
Show Gist options
  • Save fijimunkii/7030743 to your computer and use it in GitHub Desktop.
Save fijimunkii/7030743 to your computer and use it in GitHub Desktop.
index.html.slim template
doctype html
== "<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->"
== "<!--[if lt IE 7 ]> <html class=\"ie6\" lang=\"en\"> <![endif]-->"
== "<!--[if IE 7 ]> <html class=\"ie7\" lang=\"en\"> <![endif]-->"
== "<!--[if IE 8 ]> <html class=\"ie8\" lang=\"en\"> <![endif]-->"
== "<!--[if IE 9 ]> <html class=\"ie9\" lang=\"en\"> <![endif]-->"
== "<!--[if (gt IE 9)|!(IE)]><!--> <html lang=\"en\"> <!--<![endif]-->"
head
meta charset="utf-8"
/ Uncomment to make IE8 render like IE7
/ meta http-equiv="X-UA-Compatible" content="IE=7"
/ Set the viewport width to device width for mobile
meta name="viewport" content="width=device-width, initial-scale=1.0"
title= content_for?(:title) ? yield(:title) : "Untitled"
/ Included CSS Files
= stylesheet_link_tag "application"
/ Included JS Files
= javascript_include_tag "application"
= csrf_meta_tag
body
.container
== yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment