【发布时间】:2022-11-27 14:53:08
【问题描述】:
我有这个 POD 文件:
=head1 Create professional slideshows with Mojolicious::Plugin::RevealJS
=head2 Install and run a Mojolicious server
Santa's elf had a problem. He had to write very fast a presentation and show it to a bunch of new elf's.
The email assigning this to him was sent by Santa himself.
The elf started to look on Metacpan and found this module: L<Mojolicious::Plugin::RevealJS|https://metacpan.org/pod/Mojolicious::Plugin::RevealJS>
He quickly typed the following commands:
C<cpanm Mojolicius Mojolicious::Plugin::RevealJS>
Now he could generate an mojo lite app using:
C<mojo generate lite-app slide_show>
Because the elf was trained in the ancient arts of the elders
he cloud open new file with vim and paste this code in:
=begin perl
use Mojolicious::Lite -signatures;
app->static->paths(['.']);
plugin 'RevealJS';
any '/' => { template => 'presentation', layout => 'revealjs' };
app->start;
=end perl
当我运行perldoc t.pod 时,'=begin perl' 和'=end perl' 之间的代码不可见。我不明白我做错了什么。
【问题讨论】:
-
您可能只想将代码位缩进一次(例如,几个空格或一个制表符)。
-
此外,这看起来应该是一个 Perl Advent 日历条目。我们还缺少一些。 cfp.perladvent.org