惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - missthe

百度封杀淘客网站说明用户体验的重要性 sql语句中遇到“被零除错误”提示的解决方法 记录sql语句一二 sql 将查询结果保存为新表 比较实用的两种ASP模板引擎 fso文件的一些属性 用正则把英文双引号变成中文双引号 - missthe - 博客园 用split(str, chr(13)&chr(10))分割textbox当中的多行内容 汉字转换成拼音的代码(JS版) js参数使用时常犯的一个低级错误 JS判断点击行为而显示相应状态 获取某月天数的函数 JS控制文本框输入 什么是类,一个最最简单的类 汉字转换成拼音的代码(asp版) 获取当前浏览器地址的函数 过滤超链接的正则表达式函数 一个简单好用的UBB编辑器 SQL语句:那样写还不如这样写
ASP模板引擎之一 — asptemplate - missthe
missthe · 2008-12-26 · via 博客园 - missthe

版本:1.3

官方网站:http://asptemplate.sourceforge.net/

变量的定义: {{变量名}}

1、首先调用模板的类

2、声明新的模板变量,并创建
dim t
set t = New ASPTemplate

3、设置模板存放路径,如果不设置则为默认的 "templates/"
T.SetTemplatesDir(相对路径)

4、设置要使用的文件文件,这个文件将从先前设好的路径中调用
t.SetTemplateFile "layout.html"

5、对标签进行替换
t.SetVariable "title", "ASP Template Example Script 1"

6、可以对标签进去内容追加
t.Append "title", " - Main Page"

7、用一个外部文件替换标签
t.SetVariableFile "content", "content.html"

8、开始更新一个区块
t.UpdateBlock "menu_block"

9、结束一个区块, 只要一次开始就足够,在开始和结束之间可以对区块内容进行替换
t.ParseBlock "menu_block"

10、生成页面
t.Parse

11、释放变量
set t = nothing