lib/servel/haml_context.rb in servel-0.4.0 vs lib/servel/haml_context.rb in servel-0.5.0

- old
+ new

@@ -18,9 +18,13 @@ def include(path) (@build_path + path).read end + def decorate(path) + Servel::PathnameDecorator.new(pathname: path) + end + def haml_engine(path) unless @haml_engine_cache.key?(path) @haml_engine_cache[path] = Haml::Engine.new(include(path), ENGINE_OPTIONS.merge(filename: path)) end @haml_engine_cache[path] \ No newline at end of file