New HTML page splicing class library (simple template engine)

Source: Internet
Author: User

This class library helps programmers quickly and freely generate HTML pages. I thought it could be a simple template engine. But now I think it is not an engine. It can be regarded as only one auxiliary class library. In March September, I was never used after my part-time job was stopped. Some time ago I studied asynchronous programming. By the way, the Class Library also added the function that can be asynchronously executed. Some internal algorithms have also been optimized and more support for concurrent processing adjustments.

There are two major changes. One is the form of {$ static include file: Include (/include/bottom.htm) $. Directly include static file content as a parameter. You can also include other template pages in the form of {$ dynamic include file: exec (/include/exec.htm) $} and get the parsing result as a parameter.

After page_load is executed. All labels with asynchronous flag {$ asynchronous display table: 12: 20: asynchronous $} start asynchronous execution. If you want to connect multiple databases to the page. This function is useful.

In addition, there is a template and processing class code for my previous part-time project. You can see the usage habits. Demo was written yesterday and sent to the programmers who sent four emails. I modified it today, and now I want to help other programmers improve their thinking.

Address: http://files.cnblogs.com/vitality2007/ShowDemo.rar

The 210 line of the showtest. CS in the logic project is incorrect, resulting in an asynchronous page turning error. I just found that the downloaded file has been modified.

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.