UNPKG

knighkit

Version:

knighkit 是自动化,模块开发,并支持自动打包,支持远程调试的前端开发框架。 目的是减少前端开发过程中的重复工作,使你更关注程序本身。

16 lines (15 loc) 581 B
/** * @describe: UI模块A的业务逻辑 */ define(function (require, exports, module) { var $ = require('jquery'); exports.init = function () { var data = {hi: 'user', hello: 'world'}; $('#hogan').html(require('template/example-hogan').render(data)); require('template/example-hogan').init(); $('#html').html(require('template/example-html').render(data)); require('template/example-html').init(); $('#jade').html(require('template/example-jade').render(data)); require('template/example-jade').init(); } });