easy-tag-for-liquidjs
v1.1.0
Published
simple interface for creating tags for Liquidjs
Readme
easy-tag-for-liquidjs
Liquidjs is an amazing engine, but creating a tag can be challenging, this script speeds up this process by giving a simple interface for tag creation, example.
{% myTag "index" with any:"value" %}import tag from "easy-tag-for-liquidjs";
engine.registerTag(
"myTag",
tag({
render(context, index, value, set) {},
})
);Where :
context: Root dataindex: first parameter given to tagvalue: second parameter declared afterwithor=.set: Callback to define values to the context below the tag.
Todo
- [ ] Add support for content capture inside the block.
