Sha256: 84e991dbd2bcf0216d074e06015899d9a8f6ac3d2c332a40999039011a860434
Contents?: true
Size: 286 Bytes
Versions: 2
Compression:
Stored size: 286 Bytes
Contents
require 'haml' module Slinky module HamlCompiler Server.register_compiler self, :inputs => ["haml"], :outputs => ["html"] def HamlCompiler::compile file s = File.read(file) haml_engine = Haml::Engine.new(s) haml_engine.render end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slinky-0.2.1 | lib/slinky/compilers/haml-compiler.rb |
slinky-0.2.0 | lib/slinky/compilers/haml-compiler.rb |