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
互联网创业核心技术:构建可伸缩的web应用
【美】Artur Ejsmont / 李智慧、何坤 / 电子工业出版社 / 2016-12 / 89
可伸缩架构技术是所有互联网技术中最重要,也是最引人入胜的技术。《互联网创业核心技术:构建可伸缩的web应用》针对互联网创业需求快速迭代,业务快速发展,短时间内用户、数据、访问量激增的特点,提纲挈领地描述了伸缩性架构的基本原理与设计原则,详细阐述了Web应用前端层、服务层、数据层的可伸缩架构,并花大量篇幅讲述了缓存技术和异步处理技术的可伸缩设计及其在Web系统中的具体应用。 《互联网创业核心技......一起来看看 《互联网创业核心技术:构建可伸缩的web应用》 这本书的介绍吧!
HTML 压缩/解压工具
在线压缩/解压 HTML 代码
html转js在线工具
html转js在线工具
