Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Commented out problem code
  • Loading branch information
andreoss committed May 24, 2015
1 parent b7c6eff commit 230d296
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions lib/Pod/Htmlify.pm6
Expand Up @@ -189,21 +189,18 @@ class Website is export {
method p2h($pod) {
my $head = slurp 'template/head.html';
my $footer = footer-html;
my %*POD2HTML-CALLBACKS = code => sub (:$node, :&default) {
try {
my $v = Text::VimColour.new(lang => 'perl6', code => "{$node.contents.join}");
warn $v.perl;
shell 'vim';

die;
}
CATCH {
default {
return "<pre>" ~ $node.contents.join ~ "</pre>";
}
}
# my %*POD2HTML-CALLBACKS = code => sub (:$node, :&default) {
# try {
# my $v = Text::VimColour.new(lang => 'perl6', code => "{$node.contents.join}");
# return $v.html;
# }
# CATCH {
# default {
# return "<pre>" ~ $node.contents.join ~ "</pre>";
# }
# }

};
# };
pod2html $pod,
:url(&url),
:$head,
Expand Down

0 comments on commit 230d296

Please sign in to comment.