Class: Tilt::FormdownTemplate
- Inherits:
-
Template
- Object
- Template
- Tilt::FormdownTemplate
- Defined in:
- lib/tilt/formdown.rb
Class Method Summary collapse
-
.engine_initialized? ⇒ Boolean
DUMB_QUOTES = [39, 39, 34, 34].
Instance Method Summary collapse
- #allows_script? ⇒ Boolean
- #evaluate(scope, locals, &block) ⇒ Object
- #initialize_engine ⇒ Object
- #prepare ⇒ Object
Class Method Details
.engine_initialized? ⇒ Boolean
DUMB_QUOTES = [39, 39, 34, 34]
8 9 10 |
# File 'lib/tilt/formdown.rb', line 8 def self.engine_initialized? defined? ::Formdown end |
Instance Method Details
#allows_script? ⇒ Boolean
27 28 29 |
# File 'lib/tilt/formdown.rb', line 27 def allows_script? false end |
#evaluate(scope, locals, &block) ⇒ Object
23 24 25 |
# File 'lib/tilt/formdown.rb', line 23 def evaluate(scope, locals, &block) @output ||= @engine.to_html end |
#initialize_engine ⇒ Object
12 13 14 |
# File 'lib/tilt/formdown.rb', line 12 def initialize_engine require_template_library 'formdown' end |