Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Commit

Permalink
Use scss for main.css
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszx0 committed Jul 26, 2013
1 parent 655fbe9 commit 3f68791
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
@@ -1 +1,3 @@
public/index.html
public/index.html
public/css/main.css
.sass-cache
1 change: 1 addition & 0 deletions Gemfile
@@ -1,3 +1,4 @@
source "https://rubygems.org"

gem "tilt", "2.0.0.beta1"
gem "sass"
2 changes: 2 additions & 0 deletions Gemfile.lock
@@ -1,10 +1,12 @@
GEM
remote: https://rubygems.org/
specs:
sass (3.2.9)
tilt (2.0.0.beta1)

PLATFORMS
ruby

DEPENDENCIES
sass
tilt (= 2.0.0.beta1)
3 changes: 3 additions & 0 deletions bin/compile
Expand Up @@ -3,6 +3,7 @@ require 'rubygems'
require 'bundler/setup'
require 'yaml'
require 'tilt/erb'
require 'tilt/sass'

context = Class.new do
def self.projects
Expand All @@ -17,3 +18,5 @@ end

File.open("public/index.html", "w+"){ |f| f.write(Tilt::ERBTemplate.new("templates/index.html.erb").render(context)) }
puts "=> public/index.html processed"
File.open("public/css/main.css", "w+"){ |f| f.write(Tilt.new("templates/css/main.css.scss").render) }
puts "=> public/css/main.css.scss"
File renamed without changes.

0 comments on commit 3f68791

Please sign in to comment.