examples/templates/template_markaby.rb in manveru-ramaze-2009.01 vs examples/templates/template_markaby.rb in manveru-ramaze-2009.04
- old
+ new
@@ -1,16 +1,15 @@
require 'rubygems'
require 'ramaze'
class MainController < Ramaze::Controller
- view_root __DIR__('template')
engine :Markaby
helper :markaby
def index
- %{ #{A 'Home', :href => :/} | #{A(:internal)} | #{A(:external)} }
+ %{ #{a('Home',:/)} | #{a(:internal)} | #{a(:external)} }
end
def internal *args
options = {:place => :internal, :action => 'internal',
:args => args, :request => request, :this => self}
@@ -53,6 +52,6 @@
@request = request
@place = :external
end
end
-Ramaze.start
+Ramaze.start :file => __FILE__