Skip to content

Instantly share code, notes, and snippets.

Dingding Ye sishen

Block or report user

Report or block sishen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sishen / clean_eco_template.rb
Created Apr 11, 2012 — forked from doitian/clean_eco_template.rb
CleanEcoTemplate for Sprockets in Rails app
View clean_eco_template.rb
# Put this file in lib/
require 'sprockets/eco_template'
class CleanEcoTemplate < Sprockets::EcoTemplate
FROM = " (function() {"
TO = "}).call(__obj);"
def evaluate(scope, locals, &block)
content = Eco.compile(data)
You can’t perform that action at this time.