You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sully <st...@yahoo.com> on 2003/07/10 13:21:35 UTC
HTML serializer to output php?
Hi,
I'm generating my website using the CLI and I want to be able to include
PHP code inside the generated pages. My problem is getting the php tags
to output correctly in the final html.
Has anyone solved this problem before? if so how did you do it?
the different things I've tried all want to output <? instead of <?
a simple example of what I want the final page to look like is:
<html>
<body>
<?php echo "Hello World";?>
</body>
</html>
I have a feeling I'll be needing to write myself a custom serializer, if
so can somebody point me in the direction of a guide to writing a
serializer? I've been through carsten and matthew's book though they
seem to cover everything except how to write a serializer :(
maybe the best way would be for me to have some <dynamic> tags which are
transformed into <? ?> by the serializer?
Thanks
Sully
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: HTML serializer to output php?
Posted by Reinhard Pötz <re...@gmx.net>.
Maybe the TextSerializer is the right one for
you or you use the XHTMLSerializer with correct PIs encapsualting the
PHP code.
Reinhard
> -----Original Message-----
> From: Sully [mailto:stinkyelf@yahoo.com]
> Sent: Thursday, July 10, 2003 1:22 PM
> To: users@cocoon.apache.org
> Subject: HTML serializer to output php?
>
>
> Hi,
>
> I'm generating my website using the CLI and I want to be able
> to include
> PHP code inside the generated pages. My problem is getting
> the php tags
> to output correctly in the final html.
>
> Has anyone solved this problem before? if so how did you do it?
>
> the different things I've tried all want to output <? instead of <?
>
> a simple example of what I want the final page to look like is:
>
> <html>
> <body>
> <?php echo "Hello World";?>
> </body>
> </html>
>
> I have a feeling I'll be needing to write myself a custom
> serializer, if
> so can somebody point me in the direction of a guide to writing a
> serializer? I've been through carsten and matthew's book though they
> seem to cover everything except how to write a serializer :(
>
> maybe the best way would be for me to have some <dynamic>
> tags which are
> transformed into <? ?> by the serializer?
>
> Thanks
> Sully
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org