Arryn Pidwell | 1 May 2007 04:31
Picon

Returning html from an external method

Hi,

I've written an external method that returns a string of html.
However, when I call the method in a page template, the html is
encoded or quoted as text rather than rendered html. Can I get round
this?

This problem is probably the result of me not knowing how to pass
parameters to an external method or how to access a non-string (eg. a
list or dictionary) that is returned to a page template by the
external method.

Hopefully someone can point me in the right direction.

Thanks,
-Arryn Pidwell

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Andreas Jung | 1 May 2007 07:26

Re: Returning html from an external method

Use the 'structure' directive of ZPT. And please don't post twice.

-aj

--On 1. Mai 2007 14:31:48 +1200 Arryn Pidwell
<arryn.pidwell@...> 
wrote:

> Hi,
>
> I've written an external method that returns a string of html.
> However, when I call the method in a page template, the html is
> encoded or quoted as text rather than rendered html. Can I get round
> this?
>
> This problem is probably the result of me not knowing how to pass
> parameters to an external method or how to access a non-string (eg. a
> list or dictionary) that is returned to a page template by the
> external method.
>
> Hopefully someone can point me in the right direction.
>
> Thanks,
> -Arryn Pidwell
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
(Continue reading)

Arryn | 2 May 2007 00:59
Picon

Re: Returning html from an external method


Thanks, Andreas and Robert. Apologies for the double post - accidental.

Regards,
-Arryn Pidwell

Andreas Jung-5 wrote:
> 
> Use the 'structure' directive of ZPT. And please don't post twice.
> 
> -aj
> 
> 
> 
> --On 1. Mai 2007 14:31:48 +1200 Arryn Pidwell <arryn.pidwell <at> gmail.com> 
> wrote:
> 
>> Hi,
>>
>> I've written an external method that returns a string of html.
>> However, when I call the method in a page template, the html is
>> encoded or quoted as text rather than rendered html. Can I get round
>> this?
>>
>> This problem is probably the result of me not knowing how to pass
>> parameters to an external method or how to access a non-string (eg. a
>> list or dictionary) that is returned to a page template by the
>> external method.
>>
>> Hopefully someone can point me in the right direction.
(Continue reading)


Gmane