Status: idealose draftdraftproposalfinal reviewstable

Liquid for blockchain content

Let's get a common way of engaging Liquid templating for dynamic content from the blockchain.

This document describes the protocol "B://iquid" (pronounced biquid). Please share inputs and comments.


Templating is a common way of merging data with structure. The Liquid has a highly flexible syntax all the logic you can ask for so you can template your way out of any situation.


The B://iquid protocol lets content creators use Liquid as a templating engine for blockchain data and is inspired by the B://emplate idea model D.

In the following, we will use main data object to refer to the data context in which a Liquid template engine will run.


If you provide content from the blockchain you are compatible with the B://iquid protocol if you:

All key texts are case insensitive.


The following content

<ul id="stuff">
  {% for product in onStock.products %}
    <li><b>{{ }}</b> Only {{ product.price | price }}.
  {% endfor %}

Will produce

<ul id="stuff">
    <li><b>Spoon</b> Only 2.99.
    <li><b>Knife</b> Only 4.5.
    <li><b>Fork</b> Only 5.15.


No known implementations.

Please share inputs and comments.