| 1 | package Kwiki::PreformattedBlocks; | ||
| 2 | 1 | ▶ | use Kwiki::Plugin -Base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | our $VERSION = '0.11'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | const class_id => 'preformatted_blocks'; | |
| 6 | |||
| 7 | 0 | ▶ | sub register { |
|
Subroutine
register: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 8 | 0 | my $registry = shift; | |
| 9 | 0 | $registry->add(wafl => pre => 'Kwiki::PreformattedBlocks::Wafl'); | |
| 10 | } | ||
| 11 | |||
| 12 | package Kwiki::PreformattedBlocks::Wafl; | ||
| 13 | 1 | ▶ | use base 'Spoon::Formatter::WaflBlock'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 0 | ▶ | sub to_html { |
|
Subroutine
to_html: not called CC=1 SCAR=6.9
| |||
| 16 | 0 | join '', | |
| 17 | qq{<pre class="formatter_pre">\n}, | ||
| 18 | $self->block_text, | ||
| 19 | "</pre>\n"; | ||
| 20 | } | ||
| 21 | |||
| 22 | 1 | __DATA__ | |