Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我确信应该有某种方法可以从模板中呈现另一个模板,这样我就不必复制粘贴类似的块。我只是无法弄清楚。
我想到了。
{call .templateName /}
如果你需要传递参数,你可以这样做:
{template .teasersblock} <div> {call .teaser} {param url: 'https://example.com' /} {param headline: 'My headline example' /} {/call} </div> {/template}