Module: Sinatra::ScriptFilter

Includes:
Haml::Filters::Base
Defined in:
lib/sinatra/fancyviews.rb

Instance Method Summary collapse

Instance Method Details

#compile(precompiler, text) ⇒ Object



19
20
21
# File 'lib/sinatra/fancyviews.rb', line 19

def compile(precompiler, text)
  precompiler.send :push_silent, %(fancyviews.include_script(fancyviews.view_name, #{text.inspect}))
end