Class: Slim::Engine

Inherits:
Temple::Engine
  • Object
show all
Defined in:
lib/slim/engine.rb,
lib/slim/include.rb

Overview

Slim engine which transforms slim code to executable ruby code

Direct Known Subclasses

ERBConverter

Instance Method Summary collapse

Instance Method Details

#call(input) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


48
49
50
51
52
53
54
55
# File 'lib/slim/include.rb', line 48

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_includeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


45
# File 'lib/slim/include.rb', line 45

alias call_without_include call