PlackX::Framework Example: [% page_name %]
This is an example PlackX::Framework application. There is an example form at the bottom of the page.
View a Request object dump here.
Here are some URI computation examples:
# CORRECT USES
uri_goto "./another_page" : [% REQUEST.uri_goto('./another_page') %]
uri_goto "../different_app" : [% REQUEST.uri_goto('../different_app') %]
rel_uri_for "feedback" : [% REQUEST.rel_uri_for('feedback') %]
abs_uri_for "feedback" : [% REQUEST.abs_uri_for('feedback') %]
uri_for "feedback" : [% REQUEST.uri_for('feedback') %] # Alias for abs_uri_for
# INCORRECT USES, DO NOT DO THIS
uri_goto "/app/feedback" : [% REQUEST.uri_goto('/app/feedback') %] # WRONG, MISSING APP-WIDE PREFIX
rel_uri_for "../different_app" : [% REQUEST.rel_uri_for('../different_app') %] # WRONG, INAPPROPRIATE DOTS
rel_uri_for "./feedback" : [% REQUEST.rel_uri_for('./feedback') %]
abs_uri_for "./feedback" : [% REQUEST.rel_uri_for('./feedback') %]