Class: EmberScript::EmberScriptTemplate
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- EmberScript::EmberScriptTemplate
- Defined in:
- lib/ember_script.rb
Constant Summary collapse
- @@default_bare =
false
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_bare ⇒ Object
58 59 60 |
# File 'lib/ember_script.rb', line 58 def self. @@default_bare end |
.default_bare=(value) ⇒ Object
62 63 64 |
# File 'lib/ember_script.rb', line 62 def self.(value) @@default_bare = value end |
.engine_initialized? ⇒ Boolean
66 67 68 |
# File 'lib/ember_script.rb', line 66 def self.engine_initialized? true end |
Instance Method Details
#allows_script? ⇒ Boolean
74 75 76 |
# File 'lib/ember_script.rb', line 74 def allows_script? false end |
#evaluate(scope, locals, &block) ⇒ Object
70 71 72 |
# File 'lib/ember_script.rb', line 70 def evaluate(scope, locals, &block) @output ||= EmberScript.compile(data, ) end |
#prepare ⇒ Object
78 79 80 81 82 |
# File 'lib/ember_script.rb', line 78 def prepare if !.key?(:bare) and !.key?(:no_wrap) [:bare] = self.class. end end |