summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kröll <michael@localhost.localdomain>2008-12-01 21:12:27 +0100
committerMichael Kröll <michael@localhost.localdomain>2008-12-01 21:12:27 +0100
commit952ba98235a81ba25c7efc66b274753ddc809839 (patch)
tree1aab95f1b614433c64353156e3a4660a46e2dc34
parentMerge branch 'master' of git@git.useperl.at:PAUSE-OpenID (diff)
downloadSimple-OpenID-952ba98235a81ba25c7efc66b274753ddc809839.tar.gz
Simple-OpenID-952ba98235a81ba25c7efc66b274753ddc809839.tar.bz2
Simple-OpenID-952ba98235a81ba25c7efc66b274753ddc809839.zip
Dummy XSLT view
-rw-r--r--.project22
-rw-r--r--lib/PAUSE/OpenID/View/XSLT.pm50
-rw-r--r--t/view_XSLT.t6
3 files changed, 78 insertions, 0 deletions
diff --git a/.project b/.project
new file mode 100644
index 0000000..be204ee
--- /dev/null
+++ b/.project
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>PAUSE-OpenID</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ <dictionary>
+ <key>LaunchConfigHandle</key>
+ <value>&lt;project&gt;/.externalToolBuilders/org.epic.perleditor.perlbuilder (2).launch</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.epic.perleditor.perlnature</nature>
+ </natures>
+</projectDescription>
diff --git a/lib/PAUSE/OpenID/View/XSLT.pm b/lib/PAUSE/OpenID/View/XSLT.pm
new file mode 100644
index 0000000..4e2ab2a
--- /dev/null
+++ b/lib/PAUSE/OpenID/View/XSLT.pm
@@ -0,0 +1,50 @@
+package PAUSE::OpenID::View::XSLT;
+
+use strict;
+use base 'Catalyst::View::XSLT';
+
+# example configuration
+
+__PACKAGE__->config(
+ # relative paths to the directories with templates
+ INCLUDE_PATH => [
+ MyApp->path_to( 'root', 'xslt' ),
+ MyApp->path_to( 'templates', 'xsl' ),
+ ],
+ 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
+ #LibXSLT => { # XML::LibXSLT specific parameters
+ # register_function => [
+ # {
+ # uri => 'urn:catalyst',
+ # name => 'Hello',
+ # subref => sub { return $_[0] },
+ # }
+ # ],
+ #},
+);
+
+=head1 NAME
+
+PAUSE::OpenID::View::XSLT - XSLT View Component
+
+=head1 SYNOPSIS
+
+ See L<PAUSE::OpenID>
+
+=head1 DESCRIPTION
+
+Catalyst XSLT View.
+
+=head1 AUTHOR
+
+Michael Kr�ll,,,
+
+=head1 LICENSE
+
+This library is free software . You can redistribute it and/or modify it under
+the same terms as perl itself.
+
+=cut
+
+1;
diff --git a/t/view_XSLT.t b/t/view_XSLT.t
new file mode 100644
index 0000000..e7802be
--- /dev/null
+++ b/t/view_XSLT.t
@@ -0,0 +1,6 @@
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+BEGIN { use_ok 'PAUSE::OpenID::View::XSLT' }
+