Skip to content

Instantly share code, notes, and snippets.

@solotimes
Last active December 28, 2015 22:59
Show Gist options
  • Save solotimes/7575215 to your computer and use it in GitHub Desktop.
Save solotimes/7575215 to your computer and use it in GitHub Desktop.
html slim layout #snip
doctype html
<!--[if lt IE 7]><html class="no-js ie6 lt-ie10 lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="no-js ie7 lt-ie10 lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html class="no-js ie8 lt-ie10 lt-ie9"><![endif]-->
<!--[if IE 9]><html class="no-js ie9 lt-ie10"><![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js"><!--<![endif]-->
head
meta charset="utf-8"
meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"
title Title
meta content="webkit" name="renderer"
meta charset="utf-8"
meta content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" name="viewport"
meta content="portrait" name="screen-orientation"
meta content="portrait" name="x5-orientation"
meta content="no-siteapp" http-equiv="Cache-Control"
meta content="" name="keywords"
meta content="" name="description"
= stylesheet_link_tag 'application'
= csrf_meta_tag
= javascript_include_tag 'application'
= yield :head
=body_tag(:class => @page.try(:slug)) do
#container
#header
=default_for :header do
=render 'header'
#main role="main"
.main-inner
-if content_for?(:main)
=yield :main
-else
=yield
#footer
.footer-inner
=default_for :footer do
=render 'footer'
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment