Open ninjasort opened 8 years ago
Update on this. We can actually render this. However, we need to pass the data for it from the developers side. For example, a developer would specify the "state" of the theme as a model and then the build would render the right tags filled with content to edit/design that "state". For example if you wanted to edit the index page, you would specify "template": "index"
and the content_for_layout
tag would render the index.liquid file.
Certain tags in Shopify aren't available for fetching from the API. For example the
{{ content_for_header }}
is not available from the API which means we cannot render that tag because there's no data for it. In this case, we need to render a comment instead of data and just make sure that the tag is still available when uploading the theme during a dist build.