Deploying to gh-pages from @ harttle/liquidjs@7e99efc513 🚀

This commit is contained in:
harttle
2022-01-28 17:27:54 +00:00
parent 59a0c0550f
commit 5b3a84961b
557 changed files with 3820 additions and 3137 deletions
+4 -2
View File
@@ -5,8 +5,9 @@
<title>选项 | LiquidJS</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="LiquidJS is a simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net/">
<link rel="manifest" href="/manifest.json">
<link rel="manifest" href="/zh-cn/manifest.json">
<!-- Canonical links -->
<link rel="canonical" href="https://liquidjs.com/zh-cn/tutorials/options.html">
<!-- Alternative links -->
@@ -155,6 +156,7 @@
<h2 id="严格模式" class="article-heading"><a href="#严格模式" class="headerlink" title="严格模式"></a>严格模式<a class="article-anchor" href="#严格模式" aria-hidden="true"></a></h2><p><strong>strictFilters</strong> 用来启用过滤器的严格模式,如果设置为 <code>true</code> 过滤器不存在时解析会抛出异常。默认为 <code>false</code>,这时会跳过不存在的过滤器。</p>
<p><strong>strictVariables</strong> 用来启用变量严格模式。如果设置为 <code>true</code> 变量不存在时渲染会抛出异常,默认为 <code>false</code> 这时不存在的变量会被渲染为空字符串。</p>
<p><strong>ownPropertyOnly</strong> 用来隐藏原型上的变量,如果你需要把未经处理过的对象传递给模板时,可以设置 <code>ownPropertyOnly</code><code>true</code>,默认为 <code>false</code></p>
<blockquote class="note info"><strong class="note-title">不存在的标签</strong><p>不存在的标签总是会抛出一个解析异常,这一行为无法自定义。</p>
</blockquote>
@@ -162,7 +164,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-28T14:43:54.969Z" itemprop="dateModified">上次更新:2022-01-28</time>
<time class="article-footer-updated" datetime="2022-01-28T17:27:04.497Z" itemprop="dateModified">上次更新:2022-01-28</time>
<a href="setup.html" class="article-footer-prev" title="安装"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="render-file.html" class="article-footer-next" title="文件渲染"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>