CatalystX-ASP
view release on metacpan or search on metacpan
lib/CatalystX/ASP/Parser.pm view on Meta::CPAN
my $head_data = $1;
if ( $head_data =~ s/.*\n\#line (\d+) [^\n]+\n(\%\>)?//s ) {
$file_line_number = $1;
$is_code_block = $2 ? 0 : 1;
}
$file_line_number += $head_data =~ s/\n//sg;
$head_data =~ s/\<\%.*?\%\>//sg;
$is_code_block += $head_data =~ s/\<\%//sg;
$is_code_block -= $head_data =~ s/\%\>//sg;
$is_code_block = $is_code_block > 0; # stray percents like height=100%> kinds of tags
# global directory, as well as includes dirs
$c->error( "Could not find $include in IncludesDir" )
unless $self->search_includes_dir( $include );
# because the script is literally different whether there
# are includes or not, whether we are compiling includes
# need to be part of the script identifier, so the global
# caching does not return a script with different preferences.
$args ||= '';
( run in 0.417 second using v1.01-cache-2.11-cpan-624ce96ca49 )