package WebHACC::Language::CacheManifest; use strict; require WebHACC::Language::Base; push our @ISA, 'WebHACC::Langauge::Base'; sub new ($) { my $self = bless {}, shift; return $self; } # new sub generate_syntax_error_section ($) { my $self = shift; require Whatpm::CacheManifest; my $out = $self->output; $out->start_section (id => 'parse-errors', title => 'Parse Errors'); $out->start_tag ('dl', id => 'parse-errors-list'); my $input = $self->input; my $result = $self->result; my $m = $input->{is_char_string} ? 'parse_char_string' : 'parse_byte_string'; $self->{structure} = Whatpm::CacheManifest->$m ($input->{s}, $input->{uri}, $input->{base_uri}, sub { $result->add_error (@_, layer => 'syntax', index_has_link => 1); }); $out->end_tag ('dl'); $out->end_section; } # generate_syntax_error_section sub generate_structure_dump_section ($) { my $self = shift; my $manifest = $self->{structure}; $self->start_section (id => 'dump-manifest', title => 'Cache Manifest'); $self->html (qq[
Oppotunistic Caching Namespace | Fallback Entry |
---|