michaeledgar / harsh

Harsh: Another Rails Syntax Highlighter. Ultraviolet-based syntax highlighting for rails, for ERb or Haml. Better than the rest.

This URL has Read+Write access

harsh / init.rb
100644 7 lines (5 sloc) 0.326 kb
1
2
3
4
5
6
7
# Include hook code here
require File.dirname(__FILE__)+"/lib/harsh.rb"
ActionView::Base.send(:include, Harsh::ErbMethods)
 
 
harsh_sheets = Dir.entries(RAILS_ROOT+"/public/stylesheets/harsh/").reject {|s| s =~ /^\./}.map {|s| "harsh/"+s}
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :harsh => harsh_sheets