[Seaside] Outputting raw text (preformatted HTML)

Julien Berthaud j.berthaud at aureo.info
Fri Jul 6 10:39:45 UTC 2007


John Thornborrow a écrit :
> 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]
>
I think you should use html html: '<div>....blablabla...</div>' in order 
to avoid the escape/encoding phase.

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

Hope I don't misunderstand what you called "pre-formatted html".

Julien
> 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