Class: Tilt::MarukuTemplate
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/maruku.rb
Overview
Maruku markdown implementation. See: maruku.rubyforge.org/
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
17 18 19 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/maruku.rb', line 17 def allows_script? false end |
#evaluate(scope, locals, &block) ⇒ Object
13 14 15 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/maruku.rb', line 13 def evaluate(scope, locals, &block) @output ||= @engine.to_html end |
#prepare ⇒ Object
8 9 10 11 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/maruku.rb', line 8 def prepare @engine = Maruku.new(data, ) @output = nil end |