<%= csrf_meta_tag %> --> = csrf_meta_tag
use stylesheets
<%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %> --> = stylesheet_link_tag 'main'
my personal notepad - for all the things I used to write on pieces of paper ( which where never seen again esp. when I needed them ) ...
use stylesheets
<%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %> --> = stylesheet_link_tag 'main'
#./lib/tasks/erb2haml.rake
desc "Creates haml files for each of the erb files found under views (skips existing)"
task :erb2haml do
from_path = File.join(File.dirname(__FILE__), '..', '..', 'app', 'views')
Dir["#{from_path}/**/*.erb"].each do |file|
puts file
# for each .erb file in the path, convert it & output to a .haml file
output_file = file.gsub(/\.erb$/, '.haml')
`bundle exec html2haml -ex #{file} #{output_file}` unless File.exist?(output_file)
end
end