[limb-svn] r5262 - in 3.x/examples/wact: examples/tags/core/datasource/templates src templates
svn at limb-project.com
svn at limb-project.com
Fri Mar 16 13:03:37 MSK 2007
Author: serega
Date: 2007-03-16 13:03:37 +0300 (Fri, 16 Mar 2007)
New Revision: 5262
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5262
Modified:
3.x/examples/wact/examples/tags/core/datasource/templates/page.html
3.x/examples/wact/src/WactTemplateHighlightHandler.class.php
3.x/examples/wact/templates/wactfile.html
Log:
-- fixing examples
Modified: 3.x/examples/wact/examples/tags/core/datasource/templates/page.html
===================================================================
--- 3.x/examples/wact/examples/tags/core/datasource/templates/page.html 2007-03-16 09:55:33 UTC (rev 5261)
+++ 3.x/examples/wact/examples/tags/core/datasource/templates/page.html 2007-03-16 10:03:37 UTC (rev 5262)
@@ -9,7 +9,6 @@
<p><BR />
This is an example using the datasource tag and the import tag to illustrate
how datasource variable scoping works inside of a template file.</p>
-<p>
<TABLE border="1">
<TR>
<TD><core:LITERAL>{$Animal}</core:LITERAL> = {$Animal}</TD>
@@ -87,8 +86,5 @@
</core:datasource>
</blockquote>
-</p>
-<h2>The source file</h2>
-<core:include file='page.html' source='1'/>
</body>
</html>
Modified: 3.x/examples/wact/src/WactTemplateHighlightHandler.class.php
===================================================================
--- 3.x/examples/wact/src/WactTemplateHighlightHandler.class.php 2007-03-16 09:55:33 UTC (rev 5261)
+++ 3.x/examples/wact/src/WactTemplateHighlightHandler.class.php 2007-03-16 10:03:37 UTC (rev 5262)
@@ -33,8 +33,18 @@
$name_html = $name;
$value_html = $value;
- if($this->tag_dictionary->getWactTagInfo($this->current_tag))
+ if(($this->current_tag == 'core:wrap' || $this->current_tag == 'core:include') && $name == 'file')
{
+ $name_html = "<span class='wact_attr_name'>{$name}</span>";
+ $value_html = "<span class='template_path'>{$value}</span>";
+ }
+ elseif($name == 'from')
+ {
+ $name_html = "<span class='wact_attr_name'>{$name}</span>";
+ $value_html = "<span class='dbe'>{$value}</span>";
+ }
+ elseif($this->tag_dictionary->getWactTagInfo($this->current_tag))
+ {
$name_html = "<span class='wact_attr'>{$name}</span>";
$value_html = "<span class='wact_attr_name'>{$value}</span>";
}
Modified: 3.x/examples/wact/templates/wactfile.html
===================================================================
--- 3.x/examples/wact/templates/wactfile.html 2007-03-16 09:55:33 UTC (rev 5261)
+++ 3.x/examples/wact/templates/wactfile.html 2007-03-16 10:03:37 UTC (rev 5262)
@@ -24,6 +24,7 @@
.template_path {color:magenta;text-decoration:underline;font-weight:bold;}
.wact_attr {color:red;}
.wact_attr_name {color:brown;}
+.dbe {background-color:pink;}
</style>
</head>
@@ -42,6 +43,8 @@
<li><span style='background-color:red;'> </span> - Wact tag attribute</li>
<li><span style='background-color:brown;'> </span> - Wact tag attribute value</li>
<li><span style='background-color:blue;'> </span> - Regular html tag</li>
+ <li><span style='background-color:magenta;'> </span> - Template path</li>
+ <li><span style='background-color:pink;'> </span> - Data binding expression</li>
</ul>
</body>
More information about the limb-svn
mailing list