Sha256: 1843f0e2437558bea841a071335734cbca8437692f2f9b86538d6b8dbe472cde

Contents?: true

Size: 406 Bytes

Versions: 44

Compression:

Stored size: 406 Bytes

Contents

module Padrino
  module Helpers
    module OutputHelpers
      ##
      # Handler for Slim templates.
      #
      class SlimHandler < AbstractHandler
        ##
        # Returns true if the block is for Slim.
        #
        def engine_matches?(block)
          block.binding.eval('defined? __in_slim_template')
        end
      end
      OutputHelpers.register(:slim, SlimHandler)
    end
  end
end

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
padrino-helpers-0.16.0.pre3 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.16.0.pre2 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.15.3 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.15.2 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.15.1 lib/padrino-helpers/output_helpers/slim_handler.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/padrino-helpers-0.13.3.4/lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.15.0 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.4 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.3 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.12.9 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.2 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.13.3.4 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.1.1 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.1 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.0.2 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.0.1 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.0 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.0.rc2 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.14.0.rc1 lib/padrino-helpers/output_helpers/slim_handler.rb
padrino-helpers-0.13.3.3 lib/padrino-helpers/output_helpers/slim_handler.rb