Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Pyramid & Chameleon templating language escapes html

I can't make sense of chameleon's tags. I'm a django user, but decided to introduce my CompSci course mates and myself to Pyramid, since I though more lightweight = easier to learn.

At the moment the ${} tag is escaping any html tags I'm trying to output through it. In django there was some way to specify that a variable is "safe" and doesn't need to be escaped.

How can I do the same thing in Pyramid / Chameleon?

like image 687
rdrey Avatar asked Nov 28 '22 18:11

rdrey


1 Answers

Chameleon also allows ${structure: markup}.

like image 182
jules Avatar answered Feb 22 '23 22:02

jules