Class: Padrino::Helpers::OutputHelpers::SlimHandler

Inherits:
AbstractHandler show all
Defined in:
padrino-helpers/lib/padrino-helpers/output_helpers/slim_handler.rb

Overview

Handler for Slim templates.

Instance Attribute Summary

Attributes inherited from AbstractHandler

#output_buffer, #template

Instance Method Summary collapse

Methods inherited from AbstractHandler

#capture_from_template, #concat_to_template, #initialize

Constructor Details

This class inherits a constructor from Padrino::Helpers::OutputHelpers::AbstractHandler

Instance Method Details

#engine_matches?(block) ⇒ Boolean

Returns true if the block is for Slim.

Returns:

  • (Boolean)


11
12
13
# File 'padrino-helpers/lib/padrino-helpers/output_helpers/slim_handler.rb', line 11

def engine_matches?(block)
  block.binding.eval('defined? __in_slim_template')
end