If the template is
as simple as this one
then there are no issues.
we have a liquid template
which is using another liquid template.
Here is an example.
In the above case home.liquid is using two other liquid templates main.css and header.liquid.
Let’ see what these templates look like.
In order to include the assets and the partials
we need to create liquid tags.
Let’s create a tag which will handle assets.
Let’s create a tag that will handle partials.
Let’s create a new initializer and we need to register
these tags in that initializer.
Restart the server and now we can render the home.liquid template
Here we have
a simple implementation of
We can do much more, if needed, like
looping over items
to parse each item from the partial.
That can be done
by registering a separate tag for
the item and passing in
the id of the item so that
the specific item can be found and parsed.