summaryrefslogtreecommitdiffstats
path: root/lib/Narwhal/Component/Wiki/Edit.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-02-17 21:35:06 -0600
committerJesse Luehrs <doy@tozt.net>2011-02-17 21:35:06 -0600
commit224898fb1fd3046fcb82461610d5dd3ff0d0b01f (patch)
tree13dd23aa2995612852bf065fd2db7d95bb6ddcf4 /lib/Narwhal/Component/Wiki/Edit.pm
parent3cab815f8bb574d3c2bf9e4f9d627a698674c000 (diff)
downloadnarwhal-224898fb1fd3046fcb82461610d5dd3ff0d0b01f.tar.gz
narwhal-224898fb1fd3046fcb82461610d5dd3ff0d0b01f.zip
use OX::View::TT
Diffstat (limited to 'lib/Narwhal/Component/Wiki/Edit.pm')
-rw-r--r--lib/Narwhal/Component/Wiki/Edit.pm14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Narwhal/Component/Wiki/Edit.pm b/lib/Narwhal/Component/Wiki/Edit.pm
index d05e7a0..df03598 100644
--- a/lib/Narwhal/Component/Wiki/Edit.pm
+++ b/lib/Narwhal/Component/Wiki/Edit.pm
@@ -8,17 +8,15 @@ sub get {
my ($req, $page) = @_;
my $page_obj = $self->lookup("page:$page");
- my $out;
- $self->process(
+
+ $self->render(
+ $req,
'edit.tt',
{
- uri_for => sub { $req->uri_for({@_}) },
- text => ($page_obj ? $page_obj->text : ''),
- page => $page
- },
- \$out,
+ text => ($page_obj ? $page_obj->text : ''),
+ page => $page,
+ }
);
- return $req->new_response(200, [], $out);
}
sub post {