# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'ramaze' # TODO: # - implement the amrita2 example, man, this engine is awkward :P class MainController < Ramaze::Controller template_root __DIR__/:template engine :Amrita2 private def title "The external Template for Amrita2" end def link_home A('Home', :href => '/') end def link_one A('/external/one', :href => Rs(:external, :one)) end def link_two A("/external/one/two/three", :href => Rs(:external, :one, :two, :three)) end def link_three A("/external?foo=bar", :href => Rs(:external, :one, :foo => :bar)) end def inspect_parameters request.params.inspect end def args @params.map{|arg| "#{arg}"}.join(' ') end end Ramaze.start