Invenzzia »

IMPORTANT ANNOUNCEMENT

Due to the uncertain status of the Flyspray project, lack of new releases and moving the code repository to Github, we decided to shutdown this issue tracker by the end of January 2011. From that date, the bugs should be reported directly in Github project repositories.

List of repositories:

Open Power Template 2.x family

PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!

Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
Tasklist

FS#77 - Customizable escapers

Attached to Project: Open Power Template
Opened by Zyx (Zyx) - Thursday, 09 April 2009, 02:25 GMT-8
Last edited by Zyx (Zyx) - Sunday, 31 October 2010, 13:28 GMT-8
Task Type TODO ticket
Category Template syntax
Status Closed
Assigned To Zyx (Zyx)
Operating System OS-independent
Severity Low
Priority Normal
Reported Version 2.0-beta2
Due in Version 2.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently, the HTML escaping is controlled with two modifiers: **e:** and **u:** and the programmer may replace the default handler. There must be a system that allows to define more modifiers and assign the handlers for them. The areas that must be modified:

- Ability to choose the modifier for XML attributes.
- Ability to choose the default global modifier.
- Ability to choose the per-template modifier (changed the behaviour of "escaping" attribute).
- Ability to choose the per-expression modifier.
- The snippets remember the modifier they have been created with.

Expected behaviour:

* Each expression must use exactly one modifier (the "no-modifier" variant will be implemented as a fake modifier).
* If there are two candidates for the modifier, there will be used the one with the highest priority (per-expression, per-template, global).

A note about the template syntax. As we are going to use the ":" symbol to specify the expression type, too, there must be provided a hierarchy:

1. The modifiers use one-letter symbols.
2. The names of the expression engines must be at least two symbol long.
This task depends upon

Closed by  Zyx (Zyx)
Sunday, 31 October 2010, 13:28 GMT-8
Reason for closing:  Implemented
Additional comments about closing:  Works.

Loading...