类似于AngularJS HTML的Web框架——jsui
2013-12-27 00:00
411 查看
摘要: HTML的Web框架 类似于AngularJS ,自定义html标签的功能 ,按需加载解析js
结合seajs、jquery开发的一个按需加载js解析、js效果的框架工具,可以开发属于自己的html标签
通过对dom的二次解析,自定义标签的功能 Through the two analysis of DOM, make the features of the custom label
在div、input等原有html标签的基础上,二次解析,从而生成自己的特色功能标签。 Based on div, input and so on the original HTML on the label, the two resolution, thereby generating features label their.
本身可以作为js的管理框架使用
项目地址
https://github.com/caoke90/jsui
<include src="top.ejs" jsui="include"></include>
<script type="text/tcl" url="top.json" jsui="ejs">
<div class="block blo1" jsui="test">
<div class="title"><%=title%></div>
<div class="module">
<ul>
<% for(var i=0;i< module.length;i++){
var list=module[i];
%>
<li><a href="<%=list.href%>" title="<%=list.title%>"><%=list.title%></a></li>
<%}%>
</ul>
</div>
</div>
</script>
结合seajs、jquery开发的一个按需加载js解析、js效果的框架工具,可以开发属于自己的html标签
通过对dom的二次解析,自定义标签的功能 Through the two analysis of DOM, make the features of the custom label
在div、input等原有html标签的基础上,二次解析,从而生成自己的特色功能标签。 Based on div, input and so on the original HTML on the label, the two resolution, thereby generating features label their.
本身可以作为js的管理框架使用
项目地址
https://github.com/caoke90/jsui
<include src="top.ejs" jsui="include"></include>
<script type="text/tcl" url="top.json" jsui="ejs">
<div class="block blo1" jsui="test">
<div class="title"><%=title%></div>
<div class="module">
<ul>
<% for(var i=0;i< module.length;i++){
var list=module[i];
%>
<li><a href="<%=list.href%>" title="<%=list.title%>"><%=list.title%></a></li>
<%}%>
</ul>
</div>
</div>
</script>
相关文章推荐
- Python Web框架Pylons中使用MongoDB的例子
- [续] 懒到极致:对mybatis的进一步精简
- WebWork深入浅出 (转贴)http://www.blogjava.net/moxie/archive/2006/10/20/76375.html
- Yii源码分析——1、简介
- 起点
- FastJsp3.1正式开源,欢迎使用。
- 下一代的B/S开发框架--Echo 教程(6)
- Spring集成其他Web框架
- Spring Framework
- 如何选择Web框架
- webbrowser 控件实现WinForm与WebForm交互
- 浅谈Struts+Spring+Hibernate框架
- JSF2.0
- Web框架比较
- WEB系统中集成控制扫描仪解决方案
- 浅谈spring
- 理解ruby中的标志(Understanding Ruby Symbols)(转)
- Spring-MVC 初体验(一)
- 为Struts 2.0做好准备
- Java开源Web开发框架