Skip to content

Commit

Permalink
note that OpenID::Provider has not been implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
John Beppu committed Aug 7, 2008
1 parent 0b9d215 commit 6d1358b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions eg/OpenID/Provider.pm
Expand Up @@ -13,6 +13,7 @@ our @C = (
Home => ['/'],
get => sub {
my ($self) = @_;
$self->render('home');
},
)
);
Expand All @@ -24,14 +25,29 @@ use warnings;
use Squatting ':views';
use HTML::AsSubs;

# the ~literal pseudo-element -- don't entity escape this content
sub x {
HTML::Element->new('~literal', text => $_[0])
}

our @V = (
V(
'html',
layout => sub {
my ($self, $v, $content) = @_;
html(
head(
title('OpenID Provider')
),
body(
h1('OpenID Provider'),
x($content)
),
)->as_HTML;
},
home => sub {
my ($self, $v) = @_;
h2("TODO - Implement OpenID::Provider")->as_HTML;
},
)
);
Expand Down

0 comments on commit 6d1358b

Please sign in to comment.