Edgewall Software

Opened 15 years ago

Closed 15 years ago

#330 closed defect (invalid)

py:strip documentation erroneous?

Reported by: carsten.klein@… Owned by: cmlenz
Priority: trivial Milestone:
Component: Template processing Version: 0.5.1
Keywords: Cc:

Description

Hi, first off, great templating engine, congrats for that.

py:strip, when set to true or false will insert an empty div element.

it will, in all cases, even if the value of the attribute py:strip is set to the empty string, remove the matched element.

when setting the attribute py:strip to the empty string "", no empty div element will be inserted into the output stream.

Change History (1)

comment:1 in reply to: ↑ description Changed 15 years ago by cmlenz

  • Milestone 0.6 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Replying to carsten.klein@…:

py:strip, when set to true or false will insert an empty div element.

It doesn't insert anything, it may strip an existing element based on its argument value. The document is correct as far as I can tell. The directive will strip when the value is empty, or the expression evaluates to a “truthy” value. Otherwise, it leaves the element alone.

Note: See TracTickets for help on using tickets.