ASP4
view release on metacpan or search on metacpan
inc/Module/Install/Metadata.pm view on Meta::CPAN
}
}
sub author_from {
my $self = shift;
my $content = Module::Install::_read($_[0]);
if ($content =~ m/
=head \d \s+ (?:authors?)\b \s*
([^\n]*)
|
=head \d \s+ (?:licen[cs]e|licensing|copyright|legal)\b \s*
.*? copyright .*? \d\d\d[\d.]+ \s* (?:\bby\b)? \s*
([^\n]*)
/ixms) {
my $author = $1 || $2;
$author =~ s{E<lt>}{<}g;
$author =~ s{E<gt>}{>}g;
$self->author($author);
} else {
warn "Cannot determine author info from $_[0]\n";
}
}
sub license_from {
my $self = shift;
if (
Module::Install::_read($_[0]) =~ m/
(
=head \d \s+
(?:licen[cs]e|licensing|copyright|legal)\b
.*?
)
(=head\\d.*|=cut.*|)
\z
/ixms ) {
my $license_text = $1;
my @phrases = (
'under the same (?:terms|license) as perl itself' => 'perl', 1,
'GNU general public license' => 'gpl', 1,
'GNU public license' => 'gpl', 1,
lib/ASP4/MasterPage.pm view on Meta::CPAN
(C</eg-subpage.asp>):
<%@ MasterPage %>
<%@ Page UseMasterPage="/eg-master.asp" %>
<asp:Content PlaceHolderID="heading">New Heading</asp:Content>
<asp:Content PlaceHolderID="content">
New Content
<span id="copyright">
Copyright
<asp:ContentPlaceHolder id="copyright"></asp:ContentPlaceHolder>:
All Rights Reserved
</span>
</asp:Content>
And inherited from again:
(C</eg-subchild.asp>):
<%@ Page UseMasterPage="/eg-master.asp" %>
<asp:Content PlaceHolderID="copyright">SuperMegaCorp, Inc.</asp:Content>
Which - when executed, produces:
<html>
<body>
<h1>New Heading</h1>
<p>
New Content
<span id="copyright">
Copyright
SuperMegaCorp, Inc.:
All Rights Reserved
</span>
</p>
</body>
</html>
=head1 DESCRIPTION
( run in 0.975 second using v1.01-cache-2.11-cpan-bbcb1afb8fc )