From 2b8b1208ad357d3e8558e9b34cb99e5a299887b8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 29 Sep 2011 04:00:25 -0500 Subject: allow routing directly to the view --- t/data/route/templates/bar/foo.tt | 1 + t/data/route/templates/bar/index.tt | 1 + t/data/route/templates/foo/foo.tt | 1 + t/data/route/templates/foo/index.tt | 1 + 4 files changed, 4 insertions(+) create mode 100644 t/data/route/templates/bar/foo.tt create mode 100644 t/data/route/templates/bar/index.tt create mode 100644 t/data/route/templates/foo/foo.tt create mode 100644 t/data/route/templates/foo/index.tt (limited to 't/data') diff --git a/t/data/route/templates/bar/foo.tt b/t/data/route/templates/bar/foo.tt new file mode 100644 index 0000000..0b689dd --- /dev/null +++ b/t/data/route/templates/bar/foo.tt @@ -0,0 +1 @@ +

[% uri_for(template => 'foo.tt') %]: [% my_thing %]

diff --git a/t/data/route/templates/bar/index.tt b/t/data/route/templates/bar/index.tt new file mode 100644 index 0000000..f9000e6 --- /dev/null +++ b/t/data/route/templates/bar/index.tt @@ -0,0 +1 @@ +Hello world: [% my_thing %] diff --git a/t/data/route/templates/foo/foo.tt b/t/data/route/templates/foo/foo.tt new file mode 100644 index 0000000..ba1c791 --- /dev/null +++ b/t/data/route/templates/foo/foo.tt @@ -0,0 +1 @@ +

[% uri_for(template => 'foo.tt') %]

diff --git a/t/data/route/templates/foo/index.tt b/t/data/route/templates/foo/index.tt new file mode 100644 index 0000000..7849703 --- /dev/null +++ b/t/data/route/templates/foo/index.tt @@ -0,0 +1 @@ +Hello world -- cgit v1.2.3-54-g00ecf