diff options
author | xue <> | 2007-04-13 16:20:15 +0000 |
---|---|---|
committer | xue <> | 2007-04-13 16:20:15 +0000 |
commit | b05442bbe751b87998d8500ad8e6b28d652a35db (patch) | |
tree | f4fc3799f51b90fa798c397ec8c08927bf58a10f | |
parent | e002cc7d95942fb8ac7e899e0e7c5f8998b8b6ba (diff) |
Comment tag <!-- ... ---> (introduced in v3.1a) is changed to <!--- ... --->
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | UPGRADE | 3 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Configurations/Templates1.page | 4 | ||||
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 2 |
4 files changed, 7 insertions, 3 deletions
@@ -1,6 +1,7 @@ Version 3.1.0 RC To be released =============================== CHG: removed <span> tags when TDataList.RepeatLayout is Raw (Qiang) +CHG: changed comment tag to <!--- ... ---> (Qiang) Version 3.1.0 beta April 9, 2007 ================================ @@ -15,6 +15,9 @@ Upgrading from v3.1b for header, footer and items. If your existing code rely on the span tags,
you may use 'Flow' layout and set RepeatColumns as 1.
+- Comment tag <!-- ... ---> (introduced in v3.1a) is changed to <!--- ... --->
+
+
Upgrading from v3.1a
---------------------
- The signature of TActiveRecord::finder() is changed. This affects
diff --git a/demos/quickstart/protected/pages/Configurations/Templates1.page b/demos/quickstart/protected/pages/Configurations/Templates1.page index 9a71d6a5..93f5662f 100644 --- a/demos/quickstart/protected/pages/Configurations/Templates1.page +++ b/demos/quickstart/protected/pages/Configurations/Templates1.page @@ -78,12 +78,12 @@ Template control tag is optional in a template. Each template can contain at mos Comment tags are used to put in a template developer comments that will not display to end-users. Contents enclosed within a comment tag will be treated as raw text strings and PRADO will not attempt to parse them. Comment tags cannot be used within property values. The format of comment tags is as follows,
</p>
<com:TTextHighlighter Language="prado" CssClass="source block-content" id="code_180078">
-<!--
+<!---
Comments INVISIBLE to end-users
--->
</com:TTextHighlighter>
<div class="note"><b class="tip">Note:</b>
-The new comment tag <tt><!-- ... ---></tt> has been introduced since PRADO version 3.1. Previously, it was <tt><!-- ... --!></tt> which was deprecated because some editors have problems in syntax-highlighting such tags. </div>
+The new comment tag <tt><!--- ... ---></tt> has been introduced since PRADO version 3.1. Previously, it was <tt><!-- ... --!></tt> which was deprecated because some editors have problems in syntax-highlighting such tags. </div>
<h2 id="1601">Include Tags</h2>
<p id="180178" class="block-content">
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 286aa252..6fe56f4d 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -177,7 +177,7 @@ class TTemplate extends TApplicationComponent implements ITemplate * '<%[%#~\\$=\\[](.*?)%>' - expressions
* '<prop:([\w\.]+)((?:\s*[\w\.]+=\'.*?\'|\s*[\w\.]+=".*?"|\s*[\w\.]+=<%.*?%>)*)\s*\/>' - group subproperty tags
*/
- const REGEX_RULES='/<!--.*?--!>|<!--.*?--->|<\/?com:([\w\.]+)((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?"|\s*[\w\.]+\s*=\s*<%.*?%>)*)\s*\/?>|<\/?prop:([\w\.]+)\s*>|<%@\s*((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?")*)\s*%>|<%[%#~\\$=\\[](.*?)%>|<prop:([\w\.]+)((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?"|\s*[\w\.]+\s*=\s*<%.*?%>)*)\s*\/>/msS';
+ const REGEX_RULES='/<!--.*?--!>|<!---.*?--->|<\/?com:([\w\.]+)((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?"|\s*[\w\.]+\s*=\s*<%.*?%>)*)\s*\/?>|<\/?prop:([\w\.]+)\s*>|<%@\s*((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?")*)\s*%>|<%[%#~\\$=\\[](.*?)%>|<prop:([\w\.]+)((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?"|\s*[\w\.]+\s*=\s*<%.*?%>)*)\s*\/>/msS';
/**
* Different configurations of component property/event/attribute
|