Class: Slim::Engine
- Inherits:
-
Temple::Engine
- Object
- Temple::Engine
- Slim::Engine
- Defined in:
- lib/slim/engine.rb,
lib/slim/include.rb
Overview
Slim engine which transforms slim code to executable ruby code
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#call(input) ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'lib/slim/include.rb', line 45 def call(input) Thread.current[:slim_include_engine] = self Thread.current[:slim_include_level] ||= 0 Thread.current[:slim_include_level] += 1 catch(:stop) { call_without_include(input) } ensure Thread.current[:slim_include_engine] = nil if (Thread.current[:slim_include_level] -= 1) == 0 end |
#call_without_include ⇒ Object
44 |
# File 'lib/slim/include.rb', line 44 alias call_without_include call |