Skip to content

Commit

Permalink
docs: fix typo (ans => and)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusWL authored and harttle committed Oct 31, 2023
1 parent 3bd825a commit 6ebf2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorials/parse-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ engine.registerTag('random', {

Calling this tag in scope `{ bar: "bar", obj: { coo: "coo" } }` yields exactly the same result as the first example. See this JSFiddle: <http://jsfiddle.net/ctj364up/3/>

{% note info Async ans Promises %}
{% note info Async and Promises %}
Async calls in LiquidJS are implemented by generators directly, for we can call generators in synchronous manner so this tag implementation is also valid for `renderSync()`, `parseAndRenderSync()`, `renderFileSync()`. If you need to await a promise in tag implementation, simply replace `await somePromise` with `yield somePromise` and keep `* render()` instead of `async render()` will do the trick. See <a href="/tutorials/sync-and-async.html">Sync and Async</a> for more details.
{% endnote %}

Expand Down

0 comments on commit 6ebf2ee

Please sign in to comment.