Sha256: 266022dfeb56b8c0b9bbd9535058b7cc7cd7b8ba2fad52ca20ce7d14fb12e210
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
require 'innate' require 'haml/util' require 'haml/engine' module Innate module View module Haml # Shamelessly excerpted from Ramaze. def self.call(action, string) haml = View.compile(string) do |s| ::Haml::Engine.new(s, action.options) end html = haml.to_html(action.instance, action.variables) return html, 'text/html' end end register 'Innate::View::Haml', :haml end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flustered-0.1.1 | lib/flustered/extensions.rb |