Class: Strockets::StitchPostprocessor

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/strockets/stitch_postprocessor.rb

Constant Summary collapse

HEADER_PATTERN =
Sprockets::DirectiveProcessor::HEADER_PATTERN
DIRECTIVE_PATTERN =
Sprockets::DirectiveProcessor::DIRECTIVE_PATTERN

Instance Method Summary collapse

Instance Method Details

#evaluate(context, locals, &block) ⇒ Object



8
9
10
11
12
# File 'lib/strockets/stitch_postprocessor.rb', line 8

def evaluate(context, locals, &block)
  @context = context

  stitch? ? define : data
end

#prepareObject



6
# File 'lib/strockets/stitch_postprocessor.rb', line 6

def prepare; end