Skip to content

Instantly share code, notes, and snippets.

@nhunzaker
Created April 17, 2012 19:36
Show Gist options
  • Save nhunzaker/2408489 to your computer and use it in GitHub Desktop.
Save nhunzaker/2408489 to your computer and use it in GitHub Desktop.
Well formated Wordpress with Compass
# Compass Configuration File
http_path = "/"
css_dir = "."
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
output_style = :compressed
line_comments = false
on_stylesheet_saved do |filename|
require 'yaml'
info = YAML::load_file("sass/theme_info.yml").to_a.map { |i| i.join(":") }.join("\n * ")
content = "/*\n * " + info + "\n */\n\n" + File.open(filename, "r").read
File.open(filename, 'w') do |new|
new.write content
end
end
Theme Name: Theme Name
Theme URI: http://www.example.com
Author: Your Name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment