Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Evn conditionals for .less and compiled css.

$ lessc public/less/style.less > public/css/bootstrap.min.css
  • Loading branch information...
commit 22aa407adf683b06679d1f82920344988b18a5ad 1 parent 4bb3ce9
Rob McGrail authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 views/layout.haml
View
12 views/layout.haml
@@ -8,8 +8,16 @@
%meta{:content => "", :name => "author"}
%meta{:content => "width=device-width", :name => "viewport"}
%link{:href => '/img/favicon.ico', :type => 'image/x-icon', :rel => "shortcut icon"}
- %link{:href => "/less/style.less", :rel => "stylesheet/less"}
- %script{:src => "/js/libs/less-1.2.1.min.js"}
+
+ - if settings.development?
+ %link{:href => "less/style.less", :rel => "stylesheet/less"}
+ %script{:src => "js/libs/less-1.2.1.min.js"}
+
+ - if settings.production?
+ %link{:href => "css/bootstrap.min.css", :rel => "stylesheet"}
+
+ %link{:href => "css/style.css", :rel => "stylesheet"}
+
%link{:href => "/css/prettify.css", :rel => "stylesheet"}
%link{:href => "/css/style.css", :rel => "stylesheet"}
/[if lt IE 9]
Please sign in to comment.
Something went wrong with that request. Please try again.