Class: Tilt::BlueClothTemplate

Inherits:
Template
  • Object
show all
Defined in:
lib/tilt/bluecloth.rb

Overview

BlueCloth Markdown implementation. See: deveiate.org/projects/BlueCloth/

Instance Attribute Summary

Attributes inherited from Template

#data, #file, #line, #options

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

- (Boolean) allows_script?



19
20
21
# File 'lib/tilt/bluecloth.rb', line 19

def allows_script?
  false
end

- (Object) evaluate(scope, locals, &block)



15
16
17
# File 'lib/tilt/bluecloth.rb', line 15

def evaluate(scope, locals, &block)
  @output ||= @engine.to_html
end

- (Object) prepare



10
11
12
13
# File 'lib/tilt/bluecloth.rb', line 10

def prepare
  @engine = BlueCloth.new(data, options)
  @output = nil
end