简体   繁体   中英

Shopify liquid template debugging

I am trying to debug a Shopify theme.

I am a ruby dev, so understand the code.

But seems, if my liquid tags are in error than Shopify just ignores it/goes back to the previous version in production.

Any ideas how I can debug a live production theme's liquid template?

计算出来,视图页面源中显示液体错误:

Something that may help you or others coming to this question is using Shopify's themekit for offline development. This will catch syntax errors on upload, for example:

    10:25:19 [development] Received Update event on templates/product.liquid
    10:25:19 [development]Asset Perform Update to templates/product.liquid at host yourshop.myshopify.com
    Status: 422 Unprocessable Entity
    Errors: Liquid syntax error (line 7): Unknown tag 'not_a_tag'

There is a good, though slightly outdated now, tutorial here . To note, when he mentions downloading the shopify_theme gem, that is now not maintained and you should use themekit instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM