lib/ramaze/template/haml.rb in ramaze-0.1.0 vs lib/ramaze/template/haml.rb in ramaze-0.1.1
- old
+ new
@@ -20,19 +20,16 @@
# that you can set also by
# trait :haml_options => {}
# if you pass the options it will merge the trait with them. (your options
# override the defaults from trait[:haml_options]
- def transform controller, options = {}
- action, parameter, file, bound = *super
+ def transform action
+ template = reaction_or_file(action)
- reaction = controller.send(action, *parameter)
- template = reaction_or_file(reaction, file)
-
return '' unless template
haml = ::Haml::Engine.new(template, ancestral_trait[:haml_options])
- haml.to_html(controller)
+ haml.to_html(action.controller)
end
end
end
end