Explain a brand new ASP template engine to separate the code (logical) layer and HTML (presentation) layer. This template implementation method avoids the general ASP template loading template files (loading components) and replacing waste resources, implements a compiled template engine, and improves the execution speed and stability of the program.
content:
Currently, WEB development has become very popular because of various applications, which require increasingly separation of the presentation layer and the logic layer. ASP and HTML are sandwiched together and the program will become difficult to maintain and have poor readability. In the PHP field, template engines are already very common, such as phplib, SMARTY, etc. There are alternative methods, and there are also compilation methods (SMARTY), which all better realize the separation of logic and presentation layers. Due to the influence of PHP, in the ASP industry, some people use phplib and other methods to develop asp template classes. Since ASP's performance is not very powerful in character processing, it is affected in speed. Such templates are not widely used in the current situation. For example: 1
2html>
3head>
4title>{$title}title>
5head>
6body>
7{$body}
8body>
9html>