enhancement: decrease dist size

This commit is contained in:
harttle
2016-10-04 22:31:28 +08:00
parent 1e1b6e8cc3
commit 77930e2d20
30 changed files with 2724 additions and 3934 deletions
+5 -3
View File
@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title></title>
<script src="../../dist/shopify-liquid.min.js"></script>
<script src="../../dist/liquid.js"></script>
</head>
<body>
@@ -12,9 +12,11 @@
<script>
var engine = window.Liquid();
var src = '{{ name | capitalize}}';
var src = 'Welcome to {{ name | capitalize}}, ' +
'access time: {{date|date: "%Y-%m-%d %H:%M:%S"}}';
var ctx = {
name: 'welcome to Shopify Liquid'
name: 'Liquid',
date: new Date()
};
engine.parseAndRender(src, ctx)
.then(function(html) {