spec/ramaze/template/haml.rb in Pistos-ramaze-2008.09 vs spec/ramaze/template/haml.rb in Pistos-ramaze-2008.12
- old
+ new
@@ -5,11 +5,11 @@
spec_require 'ramaze/template/haml'
class TCTemplateHamlController < Ramaze::Controller
map :/
- view_root __DIR__/:haml
+ view_root __DIR__(:haml)
engine :Haml
helper :link
def index
@@ -20,10 +20,10 @@
end
end
class TCRamazeLocals < Ramaze::Controller
map '/locals'
- view_root __DIR__/:haml
+ view_root __DIR__(:haml)
def output
render_template 'locals.haml', :abc => 'def'
end