Class: Tilt::LiveScriptTemplate
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/livescript.rb
Overview
LiveScript template implementation. See: livescript.net/
LiveScript templates do not support object scopes, locals, or yield.
Instance Attribute Summary
Attributes inherited from Template
Instance Method Summary collapse
Methods inherited from Template
#basename, default_mime_type, default_mime_type=, #eval_file, #initialize, metadata, #metadata, #name, #render
Constructor Details
This class inherits a constructor from Tilt::Template
Instance Method Details
#allows_script? ⇒ Boolean
19 20 21 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/livescript.rb', line 19 def allows_script? false end |
#evaluate(scope, locals, &block) ⇒ Object
15 16 17 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/livescript.rb', line 15 def evaluate(scope, locals, &block) @output ||= LiveScript.compile(data, ) end |
#prepare ⇒ Object
12 13 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/livescript.rb', line 12 def prepare end |