| 1 | package CodeGen::Protection::Format::HTML; | ||
| 2 | |||
| 3 | # ABSTRACT: Safely rewrite parts of HTML documents | ||
| 4 | |||
| 5 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Carp 'croak'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | with 'CodeGen::Protection::Role'; | |
| 8 | |||
| 9 | 1 | our $VERSION = '0.06'; | |
| 10 | |||
| 11 | 2 | ▶ | sub _tidy { |
|
Subroutine
_tidy: called CC=1 SCAR=0.0
| |||
| 12 | 2 | my ( $self, $code ) = @_; | |
| 13 | 2 | return $code; # we don't yet tidy | |
| 14 | } | ||
| 15 | |||
| 16 | 5 | ▶ | sub _start_marker_format { |
|
Subroutine
_start_marker_format: called CC=1 SCAR=0.0
| |||
| 17 | 5 | '<!-- %s %s. Do not touch any code between this and the end comment. Checksum: %s -->'; | |
| 18 | } | ||
| 19 | |||
| 20 | 5 | ▶ | sub _end_marker_format { |
|
Subroutine
_end_marker_format: called CC=1 SCAR=0.0
| |||
| 21 | 5 | '<!-- %s %s. Do not touch any code between this and the start comment. Checksum: %s -->'; | |
| 22 | } | ||
| 23 | |||
| 24 | 1 | 1; | |
| 25 | |||
| 26 | __END__ | ||