Skip to content

  • 项目
  • 群组
  • 代码片段
  • 帮助
    • 正在加载...
    • 帮助
    • 为 GitLab 提交贡献
  • 登录
T
taote
  • 项目
    • 项目
    • 详情
    • 活动
    • 周期分析
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分枝图
    • 比较
    • 统计图
  • 议题 0
    • 议题 0
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 0
    • 合并请求 0
  • CI / CD
    • CI / CD
    • 流水线
    • 作业
    • 计划
    • 统计图
  • Wiki
    • Wiki
  • 代码片段
    • 代码片段
  • 成员
    • 成员
  • 折叠边栏
  • 活动
  • 分枝图
  • 统计图
  • 创建新议题
  • 作业
  • 提交
  • 议题看板
  • 李达
  • taote
  • Repository

切换分支/标签
  • taote
  • public
  • assets
  • libs
  • art-template
  • demo
  • print.html
查找文件
BlameHistoryPermalink
  • Junlz's avatar
    taote_2.0 · 0be36132
    由 Junlz 提交于 4 年前
    0be36132
print.html 378 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>print-demo</title>
<script src="../dist/template.js"></script>
</head>

<body>
<h1>print</h1>
<script id="test" type="text/html">
{{print a b c}}
</script>

<script>
var html = '';


var data = {
	a: 'hello',
	b: '--world',
	c: '--!!!'
};

html = template('test', data);
document.write(html);
</script>
</body>
</html>

Replace print.html

拖放文件到此处或者 点击上传


取消
将在派生(fork)项目中中创建一个新的分支, 并开启一个新的合并请求。