summaryrefslogtreecommitdiffstats
path: root/t/data
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-09-29 04:00:25 -0500
committerJesse Luehrs <doy@tozt.net>2011-09-29 04:00:25 -0500
commit2b8b1208ad357d3e8558e9b34cb99e5a299887b8 (patch)
treeb1ddb9153c191d215048dbdb9a34fa123623dbac /t/data
parent25b489a34ad55818a7407ce32f3c89968a1d240f (diff)
downloadox-view-tt-2b8b1208ad357d3e8558e9b34cb99e5a299887b8.tar.gz
ox-view-tt-2b8b1208ad357d3e8558e9b34cb99e5a299887b8.zip
allow routing directly to the view
Diffstat (limited to 't/data')
-rw-r--r--t/data/route/templates/bar/foo.tt1
-rw-r--r--t/data/route/templates/bar/index.tt1
-rw-r--r--t/data/route/templates/foo/foo.tt1
-rw-r--r--t/data/route/templates/foo/index.tt1
4 files changed, 4 insertions, 0 deletions
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 @@
+<p>[% uri_for(template => 'foo.tt') %]: [% my_thing %]</p>
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 @@
+<b>Hello world: [% my_thing %]</b>
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 @@
+<p>[% uri_for(template => 'foo.tt') %]</p>
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 @@
+<b>Hello world</b>