Introduction to chtml labels and basics of chtml labels
The chtml tag is the start and end of the WebEasy label language. When WebEasy analyzes a complete html, xml, or SVG file, only the labels between <chtml> to </chtml> or <ChinaHtml> to </ChinaHtml> are interpreted and executed. Other contents are static (html, xml) after the text is processed, it is directly output to the browser. In this way, the server's response speed is greatly improved, and the response speed for direct access to static pages is almost achieved, and the whole page content is not required to be written strictly and strictly. Let's take a look at the previous (start writing) example.
<Title> system variable </title>
Let's look at the output results.
System Variables
Variable name |
Value |
Client |
Light Open Platform public Edition |
Copyright |
Copyright2015 Edoit |
Count |
0 |
Curpath |
_ Samples/ |
Date |
09:04:35 |
Day |
29 |
Dir |
E:/webeasy/ |
Enc |
UTF-8 |
Exts |
Html/htm/chtml/chtm/svg/svgz/img/xml/json |
Face |
/Webeasy/ |
File. enc |
GBK |
Help |
Easy do it |
Homepage |
Edoit.htok.net |
Ip |
10.0.0.12 |
......
The content in the table is the result generated after the labels between <chtml> and </chtml> are interpreted.
It should be noted that the content to be interpreted and executed between <chtml> and </chtml> must comply with XML specifications, such as WebEasy language labels (except chtml/ChinaHtml) <for>... </for>, <if>... </if>, <we>... </we>, or all html tags, such as <div>... </dir>, <table>... </table>, <p>... </p>, <tr>... </tr>.
(Example file: _ samples/sys.html)
Download and description of light platform Resources
Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8381859
Development Instance:Light B2C e-commerce websites, Free download: http://download.csdn.net/detail/tx18/8318585
The light-Open Platform will occasionally upgrade to provide more powerful and Easy functions for you. Please pay attention to the latestDevelopment Manual
Note: The light-Open Platform and our development instances are permanently free of charge and are not intended for use. That is to say, You Can slightly modify our instances and operate them on your own or sell them to your customers, we will not charge you a penny.