You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Lars Trieloff (JIRA)" <ji...@apache.org> on 2007/12/19 19:34:43 UTC
[jira] Updated: (SLING-142) Compact Syntax for ESP expressions in
HTML attributes
[ https://issues.apache.org/jira/browse/SLING-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Trieloff updated SLING-142:
--------------------------------
Attachment: esp-compact-syntax.patch
This patch adds support for the proposed compact syntax. Test cases are included.
> Compact Syntax for ESP expressions in HTML attributes
> -----------------------------------------------------
>
> Key: SLING-142
> URL: https://issues.apache.org/jira/browse/SLING-142
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Reporter: Lars Trieloff
> Attachments: esp-compact-syntax.patch
>
>
> The current syntax for ESP expressions ( <%= value %>) parallels the JSP syntax, but is hard to read when it is used in HTML attributes (<a href="<%=link %>"><%=name %> </a>). I propose an syntax addition that allows inline ESP expressions in HTML in a more compact way and that is less intrusive to the XML structure. Basis for the syntax were JSP Expression language and XSLT. The above example would be rephrased in the new syntax as: (<a href="{link}"><%=name %> </a>).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.