flyku
Version:
Flyku is an automated, modular development framework. The goal is to reduce duplication of work in the front-end development process, so that you pay more attention to the program itself.
27 lines • 1.02 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title><%=_data.title%></title>
<link rel="stylesheet" href="../../src/styles/normalize.css">
<link rel="stylesheet" href="../../src/styles/base.css">
<link rel="stylesheet" href="../../src/styles/business.css">
<link rel="stylesheet" href="../../src/template/<%=_data.moduleId %>/m.css"> <!--可能会不存在-->
</head>
<body>
<div id="result"></div>
<script type="text/javascript" src="../../lib/sea-debug.js"></script>
<script type="text/javascript">
seajs.use('../../kConfig/configs', function (conf) {
seajs.config(conf);
});
</script>
<script type="text/javascript">
seajs.use('./<%=_data.moduleId %>', function (module) {
document.getElementById("result").innerHTML = module.render(<%= _data.data %>);
module.init();
});
</script>
<script type="text/javascript" src="http://<%= _data.hostPath %>:10089/target/target-script-min.js#anonymous"></script>
</body>
</html>