I'm returning a string body_class
to my view. I can't seem to put in a condition without breaking it:
<body tal:condition="body_class" class="${body_class}">
<body tal:condition="not body_class">
Kinda works. It outputs the body class but the rest of the template doesn't work. I'm looking for a solution that puts in the body class if the string exists, otherwise leaves it out.
Dunno what I'm doing wrong.