[Seaside] Outputting raw text (preformatted HTML)

John Thornborrow john at pinesoft.co.uk
Fri Jul 6 10:40:53 UTC 2007


Ha, as soon as I send the mail, I found the answer:

renderContentOn: html
    model getArticles do: [:article |
       html div class: 'article'; with: [html html: article headline, 
article brief]]

Regards,
John.

John Thornborrow wrote:
> Hello all,
>
> Just a quick one.. how can I output raw text to the user agent?
>
> I am working with pre-formatted html ("ugh" I hear you say..) and thus 
> I need to output the text without escaping/encoding the text.
>
> Currently using:
>
> renderContentOn: html
>    model getArticles do: [:article |
>        html div class: 'article'; with: article headline, article brief]
>
> Thanks,
> John.
>
> www.pinesoft.co.uk
>
>
> Pinesoft Computers are registered in England, Registered number: 
> 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, 
> EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl - 
> www.blackspider.com
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>



More information about the Seaside mailing list