Recent Changes - Search:

PITS main list

edit sidebar

Main sidebar



Summary: (:else:) extension of Conditional Markup
Created: 2006-08-21 02:38
Status: Closed, in 2.2.0-beta32
Category: Feature
From: Simon
Priority: 5
Version: 2.1.14
OS: n/a

Description: Suggested extension to the extremely useful (:if:) (:ifend:) Conditional Markup.

have an optional (:else:) clause, eg

(:if yadda yadda:)
other thing

For the time being I've declined this particular feature--see for the discussion.

Essentially, the problem is that adding (:else:) and (:elseif:) leads to a desire for nested-ifs, which means that we would have to separate the meanings of and , which complicates a lot of otherwise simple markup.


I'd be very happy just with the addition of a simple else, makes it simpler than writing

 if condition

followed by

 if not condition

which is sometimes harder to do, and why I though of requesting the enhancement

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:56 AM