ASP template engine-asptemplate

Source: Internet
Author: User
Version: 1.3

Http://asptemplate.sourceforge.net/

Variable definition:{Variable name }}

1. First, call the template class

2. Declare new template variables and create
Dim t
Set T = newAsptemplate

3. Set the template storage path. If not set, the default "templates /"
T. settemplatesdir (relative path)

4. Set the file to be used, which will be called from the previously set path
T. settemplatefile "layout.html"

5. Replace tags
T. setvariable "title", "ASP template example script 1"

6. You can append the TAG content.
T. APPEND "title", "-main page"

7. Replace tags with an external file
T. setvariablefile "content", "content.html"

8. start updating a block.
T. updateblock "menu_block"

9. It is enough to end a block once. block content can be replaced between start and end.
T. parseblock "menu_block"

10. Generate the page
T. parse

11. Release Variables
Set T = nothing

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.