aboutsummaryrefslogtreecommitdiffstats
path: root/t/simple.pl
diff options
context:
space:
mode:
Diffstat (limited to 't/simple.pl')
-rw-r--r--t/simple.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/simple.pl b/t/simple.pl
new file mode 100644
index 0000000..0244f7c
--- /dev/null
+++ b/t/simple.pl
@@ -0,0 +1,11 @@
+use strict;
+use warnings;
+
+use lib 'lib';
+use ComponentUI;
+
+my $ctx = bless({ stash => {} }, 'ComponentUI');
+
+my $view = ComponentUI->view('TT');
+
+print $view->render($ctx, 'textfield', { self => { label => 'Label', message => 'Status message.' }, blocks => {} });