summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJozef Kutej <jozef@kutej.net>2008-12-01 21:48:32 +0100
committerJozef Kutej <jozef@kutej.net>2008-12-01 21:48:32 +0100
commitc8d904fa5da55a63c97c5232205cc162c92d94d6 (patch)
treea1c09f44691bd18335ff9c985a4355f901d88a01
parent#!/usr/bin/perl (diff)
parentMerge branch 'master' of git@git.useperl.at:PAUSE-OpenID (diff)
downloadSimple-OpenID-c8d904fa5da55a63c97c5232205cc162c92d94d6.tar.gz
Simple-OpenID-c8d904fa5da55a63c97c5232205cc162c92d94d6.tar.bz2
Simple-OpenID-c8d904fa5da55a63c97c5232205cc162c92d94d6.zip
Merge branch 'master' of git@git.useperl.at:PAUSE-OpenID
-rw-r--r--lib/PAUSE/OpenID/Controller/Root.pm6
-rw-r--r--lib/PAUSE/OpenID/View/XSLT.pm3
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/PAUSE/OpenID/Controller/Root.pm b/lib/PAUSE/OpenID/Controller/Root.pm
index 915801c..c37b2c2 100644
--- a/lib/PAUSE/OpenID/Controller/Root.pm
+++ b/lib/PAUSE/OpenID/Controller/Root.pm
@@ -29,8 +29,12 @@ PAUSE::OpenID::Controller::Root - Root Controller for PAUSE::OpenID
sub index :Path :Args(0) {
my ( $self, $c ) = @_;
+$c->stash->{xml} =<<XML;
+<document/>
+XML
+
# Hello World
- $c->response->body( $c->welcome_message );
+ $c->forward('PAUSE::OpenID::View::XSLT');
}
sub default :Path {
diff --git a/lib/PAUSE/OpenID/View/XSLT.pm b/lib/PAUSE/OpenID/View/XSLT.pm
index 4e2ab2a..423216f 100644
--- a/lib/PAUSE/OpenID/View/XSLT.pm
+++ b/lib/PAUSE/OpenID/View/XSLT.pm
@@ -8,8 +8,7 @@ use base 'Catalyst::View::XSLT';
__PACKAGE__->config(
# relative paths to the directories with templates
INCLUDE_PATH => [
- MyApp->path_to( 'root', 'xslt' ),
- MyApp->path_to( 'templates', 'xsl' ),
+ PAUSE::OpenID->path_to( 'root', 'templates' ),
],
TEMPLATE_EXTENSION => '.xsl', # default extension when getting template name from the current action
DUMP_CONFIG => 1, # use for Debug. Will dump the final (merged) configuration for XSLT view