Deploying to gh-pages from @ harttle/liquidjs@049685b9a0 🚀

This commit is contained in:
harttle
2022-03-05 16:55:16 +00:00
parent 6eca272cfb
commit 40697c491d
549 changed files with 3296 additions and 3226 deletions
+26 -26
View File
@@ -97,7 +97,7 @@
<li><strong>Context</strong></li>
</ul>
<h2 id="Constructors" class="article-heading"><a href="#Constructors" class="headerlink" title="Constructors"></a>Constructors<a class="article-anchor" href="#Constructors" aria-hidden="true"></a></h2><h3 id="constructor-NaN" class="article-heading"><a href="#constructor-NaN" class="headerlink" title="constructor"></a>constructor<a class="article-anchor" href="#constructor-NaN" aria-hidden="true"></a></h3><p>+ <strong>new Context</strong>(<code>env</code>: object, <code>opts</code>: <a href="../interfaces/liquid_options_.normalizedfulloptions.html">NormalizedFullOptions</a>, <code>renderOptions</code>: <a href="../interfaces/liquid_options_.renderoptions.html">RenderOptions</a>): <em><a href="context_context_.context.html">Context</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L33">src/context/context.ts:33</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L35">src/context/context.ts:35</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -125,36 +125,36 @@
</tbody></table>
<p><strong>Returns:</strong> <em><a href="context_context_.context.html">Context</a></em></p>
<h2 id="Properties" class="article-heading"><a href="#Properties" class="headerlink" title="Properties"></a>Properties<a class="article-anchor" href="#Properties" aria-hidden="true"></a></h2><h3 id="environments" class="article-heading"><a href="#environments" class="headerlink" title="environments"></a>environments<a class="article-anchor" href="#environments" aria-hidden="true"></a></h3><p><strong>environments</strong>: <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L20">src/context/context.ts:20</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L22">src/context/context.ts:22</a></em></p>
<p>user passed in scope<br><code>&#123;% increment %&#125;</code>, <code>&#123;% decrement %&#125;</code> changes this scope,<br>whereas <code>&#123;% capture %&#125;</code>, <code>&#123;% assign %&#125;</code> only hide this scope</p>
<hr>
<h3 id="globals" class="article-heading"><a href="#globals" class="headerlink" title="globals"></a>globals<a class="article-anchor" href="#globals" aria-hidden="true"></a></h3><p><strong>globals</strong>: <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L24">src/context/context.ts:24</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L26">src/context/context.ts:26</a></em></p>
<p>global scope used as fallback for missing variables</p>
<hr>
<h3 id="opts" class="article-heading"><a href="#opts" class="headerlink" title="opts"></a>opts<a class="article-anchor" href="#opts" aria-hidden="true"></a></h3><p><strong>opts</strong>: <em><a href="../interfaces/liquid_options_.normalizedfulloptions.html">NormalizedFullOptions</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L29">src/context/context.ts:29</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L31">src/context/context.ts:31</a></em></p>
<p>The normalized liquid options object</p>
<hr>
<h3 id="Private-registers" class="article-heading"><a href="#Private-registers" class="headerlink" title="Private registers"></a><code>Private</code> registers<a class="article-anchor" href="#Private-registers" aria-hidden="true"></a></h3><p><strong>registers</strong>: <em>object</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L14">src/context/context.ts:14</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L16">src/context/context.ts:16</a></em></p>
<h4 id="Type-declaration" class="article-heading"><a href="#Type-declaration" class="headerlink" title="Type declaration:"></a>Type declaration:<a class="article-anchor" href="#Type-declaration" aria-hidden="true"></a></h4><hr>
<h3 id="Private-scopes" class="article-heading"><a href="#Private-scopes" class="headerlink" title="Private scopes"></a><code>Private</code> scopes<a class="article-anchor" href="#Private-scopes" aria-hidden="true"></a></h3><p><strong>scopes</strong>: <em><a href="../modules/context_scope_.html#scope">Scope</a>[]</em> = [&#x7b;&#x7d;]</p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L13">src/context/context.ts:13</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L15">src/context/context.ts:15</a></em></p>
<p>insert a Context-level empty scope,<br>for tags like <code>&#123;% capture %&#125;</code> <code>&#123;% assign %&#125;</code> to operate</p>
<hr>
<h3 id="strictVariables" class="article-heading"><a href="#strictVariables" class="headerlink" title="strictVariables"></a>strictVariables<a class="article-anchor" href="#strictVariables" aria-hidden="true"></a></h3><p><strong>strictVariables</strong>: <em>boolean</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L33">src/context/context.ts:33</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L35">src/context/context.ts:35</a></em></p>
<p>Throw when accessing undefined variable?</p>
<hr>
<h3 id="sync" class="article-heading"><a href="#sync" class="headerlink" title="sync"></a>sync<a class="article-anchor" href="#sync" aria-hidden="true"></a></h3><p><strong>sync</strong>: <em>boolean</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L25">src/context/context.ts:25</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L27">src/context/context.ts:27</a></em></p>
<h2 id="Methods" class="article-heading"><a href="#Methods" class="headerlink" title="Methods"></a>Methods<a class="article-anchor" href="#Methods" aria-hidden="true"></a></h2><h3 id="bottom" class="article-heading"><a href="#bottom" class="headerlink" title="bottom"></a>bottom<a class="article-anchor" href="#bottom" aria-hidden="true"></a></h3><p><strong>bottom</strong>(): <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L77">src/context/context.ts:77</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L79">src/context/context.ts:79</a></em></p>
<p><strong>Returns:</strong> <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<hr>
<h3 id="Private-findScope" class="article-heading"><a href="#Private-findScope" class="headerlink" title="Private findScope"></a><code>Private</code> findScope<a class="article-anchor" href="#Private-findScope" aria-hidden="true"></a></h3><p><strong>findScope</strong>(<code>key</code>: string): <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L80">src/context/context.ts:80</a></em></p>
<h3 id="Private-findScope" class="article-heading"><a href="#Private-findScope" class="headerlink" title="Private findScope"></a><code>Private</code> findScope<a class="article-anchor" href="#Private-findScope" aria-hidden="true"></a></h3><p><strong>findScope</strong>(<code>key</code>: string | number): <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L82">src/context/context.ts:82</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -165,13 +165,13 @@
</thead>
<tbody><tr>
<td><code>key</code></td>
<td>string</td>
<td>string &#124; number</td>
</tr>
</tbody></table>
<p><strong>Returns:</strong> <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<hr>
<h3 id="get" class="article-heading"><a href="#get" class="headerlink" title="get"></a>get<a class="article-anchor" href="#get" aria-hidden="true"></a></h3><p><strong>get</strong>(<code>paths</code>: string[]): <em>object</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L57">src/context/context.ts:57</a></em></p>
<h3 id="get" class="article-heading"><a href="#get" class="headerlink" title="get"></a>get<a class="article-anchor" href="#get" aria-hidden="true"></a></h3><p><strong>get</strong>(<code>paths</code>: <a href="../modules/context_context_.html#propertykey">PropertyKey</a>[]): <em>object</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L59">src/context/context.ts:59</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -182,17 +182,17 @@
</thead>
<tbody><tr>
<td><code>paths</code></td>
<td>string[]</td>
<td><a href="../modules/context_context_.html#propertykey">PropertyKey</a>[]</td>
</tr>
</tbody></table>
<p><strong>Returns:</strong> <em>object</em></p>
<hr>
<h3 id="getAll" class="article-heading"><a href="#getAll" class="headerlink" title="getAll"></a>getAll<a class="article-anchor" href="#getAll" aria-hidden="true"></a></h3><p><strong>getAll</strong>(): <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L53">src/context/context.ts:53</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L55">src/context/context.ts:55</a></em></p>
<p><strong>Returns:</strong> <em><a href="../modules/context_scope_.html#scope">Scope</a></em></p>
<hr>
<h3 id="getFromScope" class="article-heading"><a href="#getFromScope" class="headerlink" title="getFromScope"></a>getFromScope<a class="article-anchor" href="#getFromScope" aria-hidden="true"></a></h3><p><strong>getFromScope</strong>(<code>scope</code>: object, <code>paths</code>: string[] | string): <em>object</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L61">src/context/context.ts:61</a></em></p>
<h3 id="getFromScope" class="article-heading"><a href="#getFromScope" class="headerlink" title="getFromScope"></a>getFromScope<a class="article-anchor" href="#getFromScope" aria-hidden="true"></a></h3><p><strong>getFromScope</strong>(<code>scope</code>: object, <code>paths</code>: <a href="../modules/context_context_.html#propertykey">PropertyKey</a>[] | string): <em>object</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L63">src/context/context.ts:63</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -207,13 +207,13 @@
</tr>
<tr>
<td><code>paths</code></td>
<td>string[] &#124; string</td>
<td><a href="../modules/context_context_.html#propertykey">PropertyKey</a>[] &#124; string</td>
</tr>
</tbody></table>
<p><strong>Returns:</strong> <em>object</em></p>
<hr>
<h3 id="getRegister" class="article-heading"><a href="#getRegister" class="headerlink" title="getRegister"></a>getRegister<a class="article-anchor" href="#getRegister" aria-hidden="true"></a></h3><p><strong>getRegister</strong>(<code>key</code>: string): <em>any</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L41">src/context/context.ts:41</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L43">src/context/context.ts:43</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -230,11 +230,11 @@
<p><strong>Returns:</strong> <em>any</em></p>
<hr>
<h3 id="pop" class="article-heading"><a href="#pop" class="headerlink" title="pop"></a>pop<a class="article-anchor" href="#pop" aria-hidden="true"></a></h3><p><strong>pop</strong>(): <em>undefined | <a href="../interfaces/context_scope_.plainobject.html">PlainObject</a> | <a href="drop_drop_.drop.html">Drop</a>‹›</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L74">src/context/context.ts:74</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L76">src/context/context.ts:76</a></em></p>
<p><strong>Returns:</strong> <em>undefined | <a href="../interfaces/context_scope_.plainobject.html">PlainObject</a> | <a href="drop_drop_.drop.html">Drop</a>‹›</em></p>
<hr>
<h3 id="push" class="article-heading"><a href="#push" class="headerlink" title="push"></a>push<a class="article-anchor" href="#push" aria-hidden="true"></a></h3><p><strong>push</strong>(<code>ctx</code>: object): <em>number</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L71">src/context/context.ts:71</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L73">src/context/context.ts:73</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -251,7 +251,7 @@
<p><strong>Returns:</strong> <em>number</em></p>
<hr>
<h3 id="restoreRegister" class="article-heading"><a href="#restoreRegister" class="headerlink" title="restoreRegister"></a>restoreRegister<a class="article-anchor" href="#restoreRegister" aria-hidden="true"></a></h3><p><strong>restoreRegister</strong>(<code>keyValues</code>: [string, any][]): <em>void</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L50">src/context/context.ts:50</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L52">src/context/context.ts:52</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -268,7 +268,7 @@
<p><strong>Returns:</strong> <em>void</em></p>
<hr>
<h3 id="saveRegister" class="article-heading"><a href="#saveRegister" class="headerlink" title="saveRegister"></a>saveRegister<a class="article-anchor" href="#saveRegister" aria-hidden="true"></a></h3><p><strong>saveRegister</strong>(…<code>keys</code>: string[]): <em>[string, any][]</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L47">src/context/context.ts:47</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L49">src/context/context.ts:49</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -285,7 +285,7 @@
<p><strong>Returns:</strong> <em>[string, any][]</em></p>
<hr>
<h3 id="setRegister" class="article-heading"><a href="#setRegister" class="headerlink" title="setRegister"></a>setRegister<a class="article-anchor" href="#setRegister" aria-hidden="true"></a></h3><p><strong>setRegister</strong>(<code>key</code>: string, <code>value</code>: any): <em>any</em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L44">src/context/context.ts:44</a></em></p>
<p><em>Defined in <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/blob/master/src/context/context.ts#L46">src/context/context.ts:46</a></em></p>
<p><strong>Parameters:</strong></p>
<table>
<thead>
@@ -307,7 +307,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-03-02T13:23:32.533Z" itemprop="dateModified">Last updated: 2022-03-02</time>
<time class="article-footer-updated" datetime="2022-03-05T16:55:00.192Z" itemprop="dateModified">Last updated: 2022-03-05</time>
<a href="../classes/liquid_.liquid.html" class="article-footer-next" title="sidebar.api.Liquid"><span>Next</span><i class="icon-chevron-right"></i></a>
</footer>
</div>