Tests for the modules with a keep_stash option
[catagits/Catalyst-View-Component-SubInclude.git] / t / lib / KeepStash / View / TT.pm
diff --git a/t/lib/KeepStash/View/TT.pm b/t/lib/KeepStash/View/TT.pm
new file mode 100644 (file)
index 0000000..bfbe3ae
--- /dev/null
@@ -0,0 +1,21 @@
+package KeepStash::View::TT;
+use Moose;
+
+extends 'Catalyst::View::TT';
+with 'Catalyst::View::Component::SubInclude';
+
+__PACKAGE__->config(
+    TEMPLATE_EXTENSION => '.tt',
+    subinclude_plugin => 'SubRequest',
+    subinclude_plugin => 'Visit',
+    subinclude => {
+        'SubRequest' => {
+            keep_stash => 1
+        },
+        'Visit' => {
+            keep_stash => 1
+        }
+    },
+);
+
+1;