2011-08-12 41 views

回答

5

我想通了。

{call .templateName /} 
+4

如果任何人發現在未來的這個話題,這裏有所有的功能:http://code.google。 COM/p /閉合模板/源/瀏覽/中繼/示例/ features.soy –

0

如果你需要傳遞參數你可以這樣來做:

{template .teasersblock} 
    <div> 
     {call .teaser} 
      {param url: 'https://example.com' /} 
      {param headline: 'My headline example' /} 
     {/call} 
    </div> 
{/template}