Index: lib/haml/template/plugin.rb
===================================================================
--- lib/haml/template/plugin.rb (revision 736)
+++ lib/haml/template/plugin.rb (working copy)
@@ -26,6 +26,16 @@
options = Haml::Template.options.dup
Haml::Engine.new(template, options).send(:precompiled_with_ambles,
[])
end
+
+ def cache_fragment(block, name = {}, options = nil)
+ @view.fragment_for(block, name, options) do
+ eval("_hamlout.buffer", block.binding)
+ end
+ end
+
+ def read_template_file(template_path, extension)
+ File.read(template_path)
+ end
end
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---