Class: RTeX::TemplateHandler
- Inherits:
-
ActionView::Template::Handlers::ERB
- Object
- ActionView::Template::Handlers::ERB
- RTeX::TemplateHandler
- Defined in:
- lib/rtex/template_handler.rb
Instance Method Summary collapse
Instance Method Details
#call(template) ⇒ Object
5 6 7 |
# File 'lib/rtex/template_handler.rb', line 5 def call(template) super.sub(/^(?!#)/m, "Thread.current[:_rendering_rtex] = true;\n") end |