easyblockshq / easyblocks

The open-source visual builder framework.
https://easyblocks.io
GNU Affero General Public License v3.0
241 stars 33 forks source link

Shopify Liquid POC #30

Closed danielehrhardt closed 1 month ago

danielehrhardt commented 4 months ago

As discussed on X it would be nice to have some POC with Shopify Liquid like instant.so does.

instant.so will create a section.liquid File with a Schema that can be modified in the Shopify customizer.

arkodeepg commented 4 months ago

from what I understand instant.so uses grape js under the hood, the problem with that is it write the css in id's so reusing sections is not an option by default

r00dY commented 4 months ago

Hey @danielehrhardt sorry you had to wait that long.

Here's a first try: https://github.com/easyblockshq/easyblocks/blob/feature/liquid-demo/apps/liquid-demo/src/app/easyblocks-editor/page.tsx#L206-L215 (not yet merged but you should see the point)

It allows you to build components with Liquid and still use them in Easyblocks (by intermediate step of transforming Liquid to React).

Let me know if it helps