init
This commit is contained in:
9
bml/test/escape/_config.bml
Executable file
9
bml/test/escape/_config.bml
Executable file
@@ -0,0 +1,9 @@
|
||||
LookRoot $testlookroot
|
||||
DefaultScheme scheme
|
||||
DefaultLanguage en
|
||||
|
||||
AllowOldSyntax 0
|
||||
AllowCode 1
|
||||
AllowTemplateCode 1
|
||||
|
||||
|
||||
34
bml/test/escape/ea.bml
Executable file
34
bml/test/escape/ea.bml
Executable file
@@ -0,0 +1,34 @@
|
||||
Escape HTML tags:
|
||||
<?_ea In structural HTML, the <b> tag should be replaced with <strong> and the
|
||||
<i> tag with <em>. _ea?>
|
||||
|
||||
Escape a code example:
|
||||
<pre><code><?_ea
|
||||
# Overload Apache::FakeRequest's print to append output to a variable.
|
||||
{
|
||||
no warnings 'redefine';
|
||||
*Apache::FakeRequest::print = sub {
|
||||
my $r = shift;
|
||||
$Output .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::log_error = sub {
|
||||
my $r - shift;
|
||||
print STDERR @_, "\n"; $Errout .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::pnotes = sub {
|
||||
my ( $r, $key ) = @_;
|
||||
$Pnotes->{ $key } = shift if @_;
|
||||
$Pnotes->{ $key };
|
||||
};
|
||||
}
|
||||
_ea?></code></pre>
|
||||
|
||||
Escape old-style syntax:
|
||||
<?_ea Tags in BML used to be like (=this=), but that format has since been
|
||||
deprecated. _ea?>
|
||||
|
||||
Escape new-style syntax:
|
||||
<?_ea Now tags in BML look like: <?foo?>. _ea?>
|
||||
|
||||
|
||||
|
||||
32
bml/test/escape/ea.correct
Executable file
32
bml/test/escape/ea.correct
Executable file
@@ -0,0 +1,32 @@
|
||||
Escape HTML tags:
|
||||
In structural HTML, the <b> tag should be replaced with <strong> and the
|
||||
<i> tag with <em>.
|
||||
|
||||
Escape a code example:
|
||||
<pre><code># Overload Apache::FakeRequest's print to append output to a variable.
|
||||
{
|
||||
no warnings 'redefine';
|
||||
*Apache::FakeRequest::print = sub {
|
||||
my $r = shift;
|
||||
$Output .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::log_error = sub {
|
||||
my $r - shift;
|
||||
print STDERR @_, "\n"; $Errout .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::pnotes = sub {
|
||||
my ( $r, $key ) = @_;
|
||||
$Pnotes->{ $key } = shift if @_;
|
||||
$Pnotes->{ $key };
|
||||
};
|
||||
}</code></pre>
|
||||
|
||||
Escape old-style syntax:
|
||||
Tags in BML used to be like (= this =), but that format has since been
|
||||
deprecated.
|
||||
|
||||
Escape new-style syntax:
|
||||
Now tags in BML look like: <?foo?>.
|
||||
|
||||
|
||||
|
||||
7
bml/test/escape/eb.bml
Executable file
7
bml/test/escape/eb.bml
Executable file
@@ -0,0 +1,7 @@
|
||||
Escape old-style syntax:
|
||||
<?_eb Tags in BML used to be like (=this=), but that format has since been
|
||||
deprecated. _eb?>
|
||||
|
||||
Escape new-style syntax:
|
||||
<?_eb Now tags in BML look like: <?foo?>. _eb?>
|
||||
|
||||
7
bml/test/escape/eb.correct
Executable file
7
bml/test/escape/eb.correct
Executable file
@@ -0,0 +1,7 @@
|
||||
Escape old-style syntax:
|
||||
Tags in BML used to be like (= this =), but that format has since been
|
||||
deprecated.
|
||||
|
||||
Escape new-style syntax:
|
||||
Now tags in BML look like: <?foo?>.
|
||||
|
||||
26
bml/test/escape/eh.bml
Executable file
26
bml/test/escape/eh.bml
Executable file
@@ -0,0 +1,26 @@
|
||||
Escape HTML tags:
|
||||
<?_eh In structural HTML, the <b> tag should be replaced with <strong> and the
|
||||
<i> tag with <em>. _eh?>
|
||||
|
||||
Escape a code example:
|
||||
<pre><code><?_eh
|
||||
# Overload Apache::FakeRequest's print to append output to a variable.
|
||||
{
|
||||
no warnings 'redefine';
|
||||
*Apache::FakeRequest::print = sub {
|
||||
my $r = shift;
|
||||
$Output .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::log_error = sub {
|
||||
my $r - shift;
|
||||
print STDERR @_, "\n"; $Errout .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::pnotes = sub {
|
||||
my ( $r, $key ) = @_;
|
||||
$Pnotes->{ $key } = shift if @_;
|
||||
$Pnotes->{ $key };
|
||||
};
|
||||
}
|
||||
_eh?></code></pre>
|
||||
|
||||
|
||||
24
bml/test/escape/eh.correct
Executable file
24
bml/test/escape/eh.correct
Executable file
@@ -0,0 +1,24 @@
|
||||
Escape HTML tags:
|
||||
In structural HTML, the <b> tag should be replaced with <strong> and the
|
||||
<i> tag with <em>.
|
||||
|
||||
Escape a code example:
|
||||
<pre><code># Overload Apache::FakeRequest's print to append output to a variable.
|
||||
{
|
||||
no warnings 'redefine';
|
||||
*Apache::FakeRequest::print = sub {
|
||||
my $r = shift;
|
||||
$Output .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::log_error = sub {
|
||||
my $r - shift;
|
||||
print STDERR @_, "\n"; $Errout .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::pnotes = sub {
|
||||
my ( $r, $key ) = @_;
|
||||
$Pnotes->{ $key } = shift if @_;
|
||||
$Pnotes->{ $key };
|
||||
};
|
||||
}</code></pre>
|
||||
|
||||
|
||||
3
bml/test/escape/eu.bml
Executable file
3
bml/test/escape/eu.bml
Executable file
@@ -0,0 +1,3 @@
|
||||
Escaped URL characters:
|
||||
http://www.fruit-jar.com/booklist?title=<?_eu 21 Things to do with Excess !%$@#!@#@# Punctuation _eu?>
|
||||
|
||||
3
bml/test/escape/eu.correct
Executable file
3
bml/test/escape/eu.correct
Executable file
@@ -0,0 +1,3 @@
|
||||
Escaped URL characters:
|
||||
http://www.fruit-jar.com/booklist?title=21+Things+to+do+with+Excess+%21%25%24%40%23%21%40%23%40%23+Punctuation
|
||||
|
||||
1
bml/test/escape/scheme.look
Executable file
1
bml/test/escape/scheme.look
Executable file
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user