#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".
Comments
We could have an auto-decoded document-type that is 'normal' for a template and 'textcode' for where we now have Comcode. And invent 'textcode' and 'normal' tags to switch. Drop the existing 'semihtml' and 'html' tags.
So it is a combined HTML+Comcode+Tempcode language.
The term Tempcode would then be preserved only for the name of compiled Comcode.
Now that templates and Comcode pages are almost the same thing, we can add a 'Edit screen template' link on every page that is not a Comcode page, to add uniformality. We can merge the Comcode and template editors. We could even allow the template editing to be WYSIWYG on any individual template that is itself a valid XHTML snippet.
This simplifies the structure a lot. Now there is just one language, and any screen can be edited.