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