2016-11-10 21 views

回答

0

要增加,我会使用的语法如下。但是,我没有任何证据表明这种方式存在。

home.html的

{{> components/product/all-products grid=products.all default_image=theme_settings.default_image}}' 

全为products.html是一个自定义文件。

全products.html放在

{{#if grid}} 
    <section class="products-new {{theme_settings.background-for-new-products}}"> 
    <div class="layout-container"> 
     <h1 class="section-title">{{lang 'product.product_blocks.new_products.heading'}}</h1> 

     <div class="product-grid"> 
     {{#each grid}} 
      {{> components/product/product-item this show_quickshop=true show_rating=true default_image=../default_image}} 
     {{/each}} 
     </div> 
    </div> 
    </section> 
{{/if}} 
相关问题