nextlaunch / metalsmith-shopify

Why push every change to a server-rendered theme? Cache Shopify data and build themes with Metalsmith.
9 stars 0 forks source link

Create comments for tags that aren't public #16

Open ninjasort opened 8 years ago

ninjasort commented 8 years ago

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.

ninjasort commented 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.