#54 - New Tempcode look / Merge Tempcode and Comcode

Identifier #54
Issue type Feature request or suggestion
Title New Tempcode look / Merge Tempcode and Comcode
Status Closed (rejected)
Tags

Risk: Breaks themes (custom)

Risk: General incompatibility (custom)

Risk: Major rearchitecting (custom)

Handling member Chris Graham
Addon core_themeing
Description In order to make Tempcode more intuitive to people, change how the syntax works.
Steps to reproduce

Additional information {IF HAS_CONTENTS "{CHILDREN}"}
<div class="cedi_page_children">
{CHILDREN}
</div>
{/IF}

{IF HAS_NO_CONTENTS "{CHILDREN}"}
{$LANG,NO_CONTENT}
{/IF}

{IF (HAS_NO_CONTENTS "{CHILDREN_A}") AND (HAS_NO_CONTENTS "{CHILDREN_B}")}
{$LANG,NO_CONTENT}
{/IF}

{IF "{A}" AND "{B}"}
{/IF}

{IF "{A}"="3" AND "{B}"="2"}
{/IF}

Syntax recognised by...
{DIRECTIVE ...}
{/DIRECTIVE}
Anything inside the directive and not quoted is considered a symbol
Certain symbols are marked as infix
Brackets support; sensible parsing, if an infix symbol is found it realises that it has to fork

Synonyms for infix symbols:
= and == and EQ
&& and AND
|| and OR
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated