Re: html output via hdf

Nikolai Kondrashov <[email protected]>
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
Jeremy Carey wrote:
> I have a project website using Trac that I am working on, which uses
> Python and Clearsilver.  In my Python code I have a string that
> contains the HTML output I want to use in the temple:
> 
> req.hdf['somehtml'] = loadsofhtml
ClearSilver was made almost specifically for avoiding this exact technique.
This technique greatly reduces maintainability of your code. However you
weren't asking for advices and I don't know your reasons anyway.

> but when I access the variable
> 
> <?cs var:somehtml ?>
> 
> it has had the HTML characters all escaped into entity codes.  Is
> there someway to stop this happening?
You could do it like this:
<?cs uvar:somehtml ?>

Sincerely,
Nick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.