Sha256: fa97690912f68b6ef0c0000609d9ba5750a0bbdf22d5d9aba7548875e505e223
Contents?: true
Size: 649 Bytes
Versions: 4
Compression:
Stored size: 649 Bytes
Contents
module Slinky module HamlCompiler Compilers.register_compiler self, :inputs => ["haml"], :outputs => ["html"], :dependencies => [["haml", "~> 3.1.0"]], :requires => ["haml"] def HamlCompiler::compile s, file haml_engine = Haml::Engine.new(s) haml_engine.render end # escape should return a string that can be inserted into the # document in such a way that after compilation the string will be # intact in the final output. def HamlCompiler::escape s s end end end
Version data entries
4 entries across 4 versions & 1 rubygems