PureJSTemplate
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/puresjstemplate
软件介绍
Works in IE, Firefox and Webkit browsers.
Most templating languages suck
Ok, if your like me then you hate all templating langauges- they suck, they really suck. I hate them because I hate the rules they enforce upon me, they are slow, and they slow me down. Because of this, usually I end up making code that looks like this:
UGLY:
function display(data) {
var output = "<div>" + data.text + "</div>";
element.innerHTML=output;
}How horrible is that? That's probably worse than using a bad templating langauge.
Well, after disappointments with other jQuery templating plugins, I decided to make my own:
The Solution: PureJSTemplate
With PureJSTemplate you use old fashioned javascript in your template. You simply surround the javascript in special tags. Here's an example of what you can do:
<#for(var i=0; i<10; i++) { #>
<#=i#>
<#}#>
That will output the numbers 0 through 9. Easy, isn't it?
Using it:
You simply surround your template code with a textarea tag:
and call it from javascript like so:
$("#output").pureJSTemplate(
{
id:"tpl",
data:{}
});
That's it.
Get The Code
Google 广告优化与工具
宫鑫 / 电子工业出版社 / 2010-7 / 60.00元
《Google 广告优化与工具》全面地阐述了Google AdWords这个高效广告投放平台的各方面内容,包括Google广告的渠道组成、质量得分、关键词和广告语策略、后期跟踪机制以及各种辅助工具的使用等。引导读者一步步建立一个强大的Google搜索引擎营销投放策略。本书案例丰富、知识面广且层次清晰,适用于各个层次的搜索引擎营销优化人员,不论是电商企业的领导人、工作在账户优化第一线的具体操作者、营......一起来看看 《Google 广告优化与工具》 这本书的介绍吧!
CSS 压缩/解压工具
在线压缩/解压 CSS 代码
图片转BASE64编码
在线图片转Base64编码工具
