Module: Web::SimpleDispatcher::TemplateMixin

Included in:
Template, Wiki::PageEditor
Defined in:
lib/web/simpledispatcher.rb

Instance Method Summary collapse

Instance Method Details

#assign_paramsObject



61
62
63
64
65
66
67
68
69
70
# File 'lib/web/simpledispatcher.rb', line 61

def assign_params
    params = {}
    Web.keys.each do |k|
    if k
    params[k] = Web[k]
    end
  end
  
  Scope.new(self).update( params )
end

#redirect_to_template(templateClass, params) ⇒ Object



56
57
58
59
# File 'lib/web/simpledispatcher.rb', line 56

def redirect_to_template templateClass, params
		Web.reset_headers
		Web.set_redirect File.join(Web.script_name, "#{templateClass.template}?#{Web.make_query_string(Web.encode_objects(params))}")
end