docs: update README to refer to liquidjs.com

This commit is contained in:
harttle
2020-03-28 21:09:08 +08:00
parent 8d0ef21267
commit 9ebf11edcf
17 changed files with 50 additions and 89 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
tutorials: /tutorials/overview.html
tutorials: /tutorials/setup.html
tags: /tags/overview.html
filters: /filters/overview.html
playground: /playground.html
+1 -1
View File
@@ -1,6 +1,6 @@
tutorials:
getting_started:
overview: overview.html
setup: setup.html
syntax: syntax.html
render_file: render-file.html
partials: partials-and-layouts.html
@@ -5,7 +5,7 @@ title: Register Filters/Tags
## Register Tags
```javascript
// Usage: {% upper name%}
// Usage: {% upper name %}
engine.registerTag('upper', {
parse: function(tagToken, remainTokens) {
this.str = tagToken.args; // name
@@ -1,5 +1,5 @@
---
title: Overview
title: Setup
---
LiquidJS is a simple, expressive, safe and shopify compatible template engine in pure JavaScript. The purpose of this repo is to provide a standard Liquid implementation for the JavaScript community.
@@ -38,16 +38,7 @@ engine
## LiquidJS in Browsers
Pre-built UMD bundles are also available and included in the npm package:
```html
<!--for production-->
<script src="//unpkg.com/liquidjs/dist/liquid.min.js"></script>
<!--for development-->
<script src="//unpkg.com/liquidjs/dist/liquid.js"></script>
```
Or from jsDelivr CDN:
Pre-built UMD bundles are also available:
```html
<!--for production-->
@@ -5,7 +5,7 @@ title: 注册标签和过滤器
## 注册标签
```javascript
// 使用方式: {% upper name%}
// 使用方式: {% upper name %}
engine.registerTag('upper', {
parse: function(tagToken, remainTokens) {
this.str = tagToken.args; // name
@@ -1,5 +1,5 @@
---
title: 概述
title: 安装和使用
---
LiquidJS 是一个简单的、安全的、兼容 Shopify 的、纯 JavaScript 编写的模板引擎。这个项目的目的是为 JavaScript 社区提供一个 Liquid 模板引擎的实现。
@@ -38,14 +38,7 @@ engine
## 在浏览器里使用
LiquidJS 预先构建了 UMD 打包(包括压缩版和未压缩版),可以通过 NPM 包来使用:
```html
<script src="//unpkg.com/liquidjs/dist/liquid.min.js"></script> <!--生产环境-->
<script src="//unpkg.com/liquidjs/dist/liquid.js"></script> <!--开发环境t-->
```
或者直接引用 jsDelivr CDN 上的版本:
LiquidJS 预先构建了 UMD Bundle,可以通过 jsDelivr CDN 来引用:
```html
<script src="https://cdn.jsdelivr.net/npm/liquidjs/dist/liquid.min.js"></script> <!--生产环境-->