Introduction to chtml labels and basics of chtml labels

Source: Internet
Author: User
Tags webeasy

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.