mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
Deploying to gh-pages from @ harttle/liquidjs@f1fc573a65 🚀
This commit is contained in:
@@ -114,7 +114,7 @@ engine<span class="token punctuation">.</span><span class="token function">regis
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.758Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="register-filters-tags.html" class="article-footer-prev" title="注册标签/过滤器"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="parse-parameters.html" class="article-footer-next" title="参数解析"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -123,7 +123,7 @@ engine<span class="token punctuation">.</span><span class="token function">rende
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="use-in-expressjs.html" class="article-footer-prev" title="Express.js 中使用"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="escaping.html" class="article-footer-next" title="转义"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -809,7 +809,7 @@
|
||||
</script></li></ul>
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:49.780Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:52.679Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="migrate-to-9.html" class="article-footer-prev" title="迁移到 LiquidJS 9"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="differences.html" class="article-footer-next" title="与 Shopify/liquid 的不同"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="differences.html" class="article-footer-prev" title="与 Shopify/liquid 的不同"><i class="icon-chevron-left"></i><span>上一页</span></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
<ul>
|
||||
<li>真和假。在 LiquidJS 中 <code>undefined</code>, <code>null</code>, <code>false</code> 是假,之外的都是真;在 Ruby 中 <code>nil</code> 和 <code>false</code> 是假,其他都是真。见 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/pull/26">#26</a>。</li>
|
||||
<li>数字。JavaScript 不区分浮点数和整数,因此缺失一部分整数算术,见 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/issues/59">#59</a>。此外 <code>size</code> 过滤器作用于数字时总是返回零,而不是 Ruby 中的浮点数或整数的内存大小。</li>
|
||||
<li>输出字符串。基本类型的输出已经和 Shopify/liquid 对齐,但是仍然存在一些区别。比如在 Shopify/liquid 中 <code>strip</code> 会返回 inspect 字符串,但 LiquidJS <code>strip</code> 只是简单地把输入转换为字符串 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/discussions/852">#852</a>。</li>
|
||||
<li>Drop 中的 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/Shopify/liquid/wiki/Introduction-to-Drops">.to_liquid()</a> 替换为 <code>.toLiquid()</code>。</li>
|
||||
<li>数据的 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.rubydoc.info/gems/liquid/Liquid/Drop">.to_s()</a> 替换为 <code>.toString()</code>。</li>
|
||||
<li>对象的迭代顺序。JavaScript 对象的迭代顺序是插入顺序和数字键递增顺序的组合,但 Ruby Hash 中只是插入顺序(JavaScript 字面量 Object 和 Ruby 字面量 Hash 的插入顺序解释也不同)。</li>
|
||||
@@ -126,7 +127,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="changelog.html" class="article-footer-prev" title="更新日志"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="contribution-guidelines.html" class="article-footer-next" title="贡献指南"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="truthy-and-falsy.html" class="article-footer-prev" title="真和假"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="static-analysis.html" class="article-footer-next" title="静态分析"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -237,7 +237,7 @@ engine<span class="token punctuation">.</span><span class="token function">parse
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="render-tag-content.html" class="article-footer-prev" title="渲染标签内容"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="sync-and-async.html" class="article-footer-next" title="同步和异步"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="caching.html" class="article-footer-prev" title="缓存"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="register-filters-tags.html" class="article-footer-next" title="注册标签/过滤器"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="setup.html" class="article-footer-next" title="安装"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="static-analysis.html" class="article-footer-prev" title="静态分析"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="changelog.html" class="article-footer-next" title="更新日志"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="plugins.html" class="article-footer-prev" title="插件"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="truthy-and-falsy.html" class="article-footer-next" title="真和假"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</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>
|
||||
|
||||
@@ -162,7 +162,7 @@ engine<span class="token punctuation">.</span><span class="token function">regis
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="access-scope-in-filters.html" class="article-footer-prev" title="过滤器里访问上下文"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="render-tag-content.html" class="article-footer-next" title="渲染标签内容"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -132,7 +132,7 @@ Footer<span aria-hidden="true" class="line-numbers-rows"><span></span><span></sp
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="render-file.html" class="article-footer-prev" title="文件渲染"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="use-in-expressjs.html" class="article-footer-next" title="Express.js 中使用"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -121,7 +121,7 @@ engine<span class="token punctuation">.</span><span class="token function">parse
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="whitespace-control.html" class="article-footer-prev" title="换行和缩进"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="operators.html" class="article-footer-next" title="运算符"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -166,7 +166,7 @@ engine<span class="token punctuation">.</span><span class="token function">regis
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="escaping.html" class="article-footer-prev" title="转义"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="access-scope-in-filters.html" class="article-footer-next" title="过滤器里访问上下文"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -166,7 +166,7 @@ engine<span class="token punctuation">.</span><span class="token function">rende
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="options.html" class="article-footer-prev" title="选项"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="partials-and-layouts.html" class="article-footer-next" title="引用/继承"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="parse-parameters.html" class="article-footer-prev" title="参数解析"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="drops.html" class="article-footer-next" title="Liquid Drop"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -137,7 +137,7 @@ engine
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="intro-to-liquid.html" class="article-footer-prev" title="Liquid 简介"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="options.html" class="article-footer-next" title="选项"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -317,7 +317,7 @@ engine<span class="token punctuation">.</span><span class="token function">globa
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="dos.html" class="article-footer-prev" title="DoS"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="migrate-to-9.html" class="article-footer-next" title="迁移到 LiquidJS 9"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -177,7 +177,7 @@ engine<span class="token punctuation">.</span><span class="token function">regis
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="drops.html" class="article-footer-prev" title="Liquid Drop"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="whitespace-control.html" class="article-footer-next" title="换行和缩进"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="operators.html" class="article-footer-prev" title="运算符"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="dos.html" class="article-footer-next" title="DoS"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -135,7 +135,7 @@ res<span class="token punctuation">.</span><span class="token function">render</
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="partials-and-layouts.html" class="article-footer-prev" title="引用/继承"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="caching.html" class="article-footer-next" title="缓存"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -121,7 +121,7 @@ harttle<span aria-hidden="true" class="line-numbers-rows"><span></span><span></s
|
||||
|
||||
</div>
|
||||
<footer class="article-footer">
|
||||
<time class="article-footer-updated" datetime="2026-03-07T18:36:21.759Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<time class="article-footer-updated" datetime="2026-03-07T19:14:26.011Z" itemprop="dateModified">上次更新:2026-03-07</time>
|
||||
<a href="sync-and-async.html" class="article-footer-prev" title="同步和异步"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="plugins.html" class="article-footer-next" title="插件"><span>下一页</span><i class="icon-chevron-right"></i></a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user