File: filter.filter

package info (click to toggle)
libapache-asp-perl 2.63-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,120 kB
  • sloc: perl: 6,044; php: 409; sh: 62; lisp: 22; makefile: 10
file content (35 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

<% $Response->Include('header.inc'); %>

This file uses Apache::ASP both as a source and destination
filter with Apache::Filter.  By doing so it processes this
file <b><%= basename($0) %></b> first, and then it processes the output from
the first Apache::ASP script, compiling that output as
an ASP script itself.
<p>
This is probably not how this would be used normally, you
would usually chain some filter aware modules together like:
<pre>
       SetHandler perl-script
       PerlHandler SomeFilter Apache::ASP Apache::SSI
       PerlSetVar Global .
       PerlSetVar Filter On
</pre>

<p>

So we are about to print this code:
<% my $code = "<\% print '<b>Code Output: '.time().'</b>'; %\>"; %>
<%= $Server->HTMLEncode($code) %>

<p>
And here should be the executed version of it:
<p>
<% print $code; %>
<p>

This last code bit would get executed when the first script output 
gets processed by the second Apache::ASP destination filter.

<% $Response->Include('footer.inc'); %>