Sha256: c242256bcf8e92ee8eec38bb1324e92f1eabbe98682f35e0d6c8ff7cee9219d5
Contents?: true
Size: 353 Bytes
Versions: 3
Compression:
Stored size: 353 Bytes
Contents
require 'haml/engine' module Ramaze module View module Haml def self.call(action, string) action.options[:filename] = (action.view || '(haml)') haml = ::Haml::Engine.new(string.to_s, action.options) html = haml.to_html(action.instance, action.variables) return html, 'text/html' end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
Pistos-ramaze-2009.04.08 | lib/ramaze/view/haml.rb |
manveru-ramaze-2009.04.01 | lib/ramaze/view/haml.rb |
manveru-ramaze-2009.04.08 | lib/ramaze/view/haml.rb |