Class: CoffeeGetAccess
- Inherits:
-
Sprockets::Processor
- Object
- Sprockets::Processor
- CoffeeGetAccess
- Defined in:
- lib/coffee_short_get.rb
Instance Method Summary collapse
Instance Method Details
#evaluate(context, locals) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/coffee_short_get.rb', line 19 def evaluate(context,locals) body = data if context.pathname.to_s =~ /coffee/ body = CoffeeParse.parse(body) end body end |