summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorxue <>2006-06-16 11:14:31 +0000
committerxue <>2006-06-16 11:14:31 +0000
commit9b918c5b7fa3aac6e077f15dc06c1d8d7185f5aa (patch)
treec50c653905d7ed9ed9e5713d3e37b83ca55d3252 /demos
parent24a5d124d1c004892c36e969b7f03fd5d4fde9e9 (diff)
Fixed an issued about ending static string escaping.
Diffstat (limited to 'demos')
-rw-r--r--demos/quickstart/protected/pages/Configurations/Templates3.page14
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Configurations/Templates3.page b/demos/quickstart/protected/pages/Configurations/Templates3.page
index 99d43665..bc3b1f87 100644
--- a/demos/quickstart/protected/pages/Configurations/Templates3.page
+++ b/demos/quickstart/protected/pages/Configurations/Templates3.page
@@ -44,6 +44,20 @@ The format of databind tags is as follows,
<com:TTextHighlighter Language="prado" CssClass="source">
&lt;%# PhpExpression %&gt;
</com:TTextHighlighter>
+<p>
+Since v3.0.2, expression tags and databind tags can be embedded within static strings. For example, you can write the following in a template,
+</p>
+<com:TTextHighlighter Language="prado" CssClass="source">
+&lt;com:TLabel&gt;
+ &lt;prop:Text&gt;
+ Today is &lt;%= date('F d, Y',time()) &gt;.
+ The page class is &lt;%= get_class($this) %&gt;.
+ &lt;/prop:Text&gt;
+&lt;/com:TLabel&gt;
+</com:TTextHighlighter>
+<p>
+Previously, you would have to use a single expression with string concatenations to achieve the same effect.
+</p>
<a name="pt"></a>
<h3 id="1705">Parameter Tags</h3>