From b03e09d01466a7e720c0c16c4319a3853b29005c Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 25 Apr 2010 22:08:50 +0200 Subject: a simple application to test --- t/lib/TestApp.pm | 16 ++++++++++++++++ t/lib/logs/development.log | 0 t/lib/views/index.tt | 3 +++ 3 files changed, 19 insertions(+) create mode 100644 t/lib/TestApp.pm create mode 100644 t/lib/logs/development.log create mode 100644 t/lib/views/index.tt (limited to 't/lib') diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm new file mode 100644 index 0000000..966ec30 --- /dev/null +++ b/t/lib/TestApp.pm @@ -0,0 +1,16 @@ +package TestApp; + +use Dancer; +use Dancer::Plugin::I18n; + +get '/' => sub { template 'index'; }; + +package TestApp::I18N::de; +use base 'TestApp::I18N'; +our %Lexicon = ( hello => 'hallo' ); + +package TestApp::I18N::fr; +use base 'TestApp::I18N'; +our %Lexicon = ( hello => 'bonjour' ); + +1; diff --git a/t/lib/logs/development.log b/t/lib/logs/development.log new file mode 100644 index 0000000..e69de29 diff --git a/t/lib/views/index.tt b/t/lib/views/index.tt new file mode 100644 index 0000000..8260dab --- /dev/null +++ b/t/lib/views/index.tt @@ -0,0 +1,3 @@ +first we got <% l('hello') %> +<% languages('de') %> +then we have <% l('hello') %> -- cgit 1.4.1