gulp-turbo
Version:
前端工作流(requirejs/jade/stylus/coffee),完整强缩进工作流,同步异步模板复用,高效率适合初期前端团队
8 lines (7 loc) • 1.47 kB
JavaScript
/**
* gulp-turbo-demo v1.0.1
* @update 2016-03-17 18:02:22
* @by gulp-turbo v2.0.1 https://github.com/FE-EE/gulp-turbo
*/
define("tpl/loder_demo_body",["jade"],function(e){return function(t){var i,l=[],n=t||{};return function(t,n){l.push("<div><p><h2> "+e.escape(null==(i=n)?"":i)+'</h2></p><ul><li>静态资源缓存问题已由 "前端静态资源加载器" 统一管理。</li><li>可以部署在CDN上,而后端只需要与cdn设置跨域header,可以做到前后端彻底分离。</li><li>前端纯静态</li><li>后端一切都是接口</li></ul></div><div>include exmaple :<h5>引入 一个名为table的模块</h5><div id="table"><table><thead><tr>');for(var d=0;d<t.length;d++)l.push("<td>"+e.escape(null==(i=t[d])?"":i)+"</td>");l.push("</tr></thead><tbody><tr></tr></tbody></table></div></div>")}.call(this,"tableHead"in n?n.tableHead:"undefined"!=typeof tableHead?tableHead:void 0,"title"in n?n.title:"undefined"!=typeof title?title:void 0),l.join("")}}),require.config({paths:{jade:"http://static.xxxx.com/vender/runtime"},baseUrl:"//static.xxxx.com/js/"}),require(["tpl/loder_demo_body"],function(e){function t(t){var i=document.createElement("div");i.innerHTML=e(t),document.body.appendChild(i)}function i(){for(var e=Array.prototype.slice.call(arguments),t=0;t<e.length;t++){var i=e[t];i&&"function"==typeof i.init&&i.init()}}t($CONFIG),i.apply(null,arguments)}),define("entry/loder_demo",function(){});
//# sourceMappingURL=.maps/loder_demo.js.map