You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Pete Moran <pe...@forloop.co.uk> on 2006/06/26 13:24:03 UTC
Completed Document
Hi there,
For internal reasons, we need to log the completed HTML documents once
compiled by Embperl...
so if we have in base.epl
<html>
<body>
[- Execute('*') -]
</body>
</html>
and component is
<h1>Hello</h1>
Completed document will be
<html>
<body>
<h1>Hello</h1>
</body>
</html>
Is there a way to access the document completed so far inside the
base.epl ? or at a level above by intercepting it at the Apache level ?
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Completed Document
Posted by Gerald Richter <ri...@ecos.de>.
>
> Pete Moran wrote:
> > Yes Craig, small world :)
> >
> > However its not the output of the execute I want, its also
> including
> > what was inside the base.epl itself.... so above where the
> execute is
> > called. In this example, the output would only contain the
> <h1> tags.
> >
>
> Thats why I said move it all a level down.
>
> create (for example) base2.epl containing the html you have
> now, then make base.epl a one liner that calls base2.epl with
> the output flag set, which in turn executes *.
>
> That would seem simpler to me than apache voodoo of some sort.
>
"Apache Voodoo" would be to write a Apache output filter in mod_perl that,
beside simply passing the content through, would write to a file.
Gerald
** Virus checked by BB-5000 Mailfilter **
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Completed Document
Posted by Craig Dunn <li...@codenation.net>.
Pete Moran wrote:
> Yes Craig, small world :)
>
> However its not the output of the execute I want, its also including
> what was inside the base.epl itself.... so above where the execute is
> called. In this example, the output would only contain the <h1> tags.
>
Thats why I said move it all a level down.
create (for example) base2.epl containing the html you have now, then
make base.epl a one liner that calls base2.epl with the output flag set,
which in turn executes *.
That would seem simpler to me than apache voodoo of some sort.
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Completed Document
Posted by Pete Moran <pe...@forloop.co.uk>.
Yes Craig, small world :)
However its not the output of the execute I want, its also including
what was inside the base.epl itself.... so above where the execute is
called. In this example, the output would only contain the <h1> tags.
Regards
Pete
Craig Dunn wrote:
> Pete Moran wrote:
>> Hi there,
>
> Hi Pete - small world :)
>
>> For internal reasons, we need to log the completed HTML documents
>> once compiled by Embperl...
>>
>> so if we have in base.epl
>>
>> <html>
>> <body>
>> [- Execute('*') -]
>> </body>
>>
>> </html>
>
>
> Take out all the HTML from base.epl and put it one level down, then
> you can Execute from the base.epl;
>
> Execute({ inputfile => '*', output => \$Output});
>
> I think...
>
> Craig
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Completed Document
Posted by Craig Dunn <li...@codenation.net>.
Pete Moran wrote:
> Hi there,
Hi Pete - small world :)
> For internal reasons, we need to log the completed HTML documents once
> compiled by Embperl...
>
> so if we have in base.epl
>
> <html>
> <body>
> [- Execute('*') -]
> </body>
>
> </html>
Take out all the HTML from base.epl and put it one level down, then you
can Execute from the base.epl;
Execute({ inputfile => '*', output => \$Output});
I think...
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org