0

我想构建一组模板来帮助创建引导组件。这可以正常工作,除了我还为我的主页使用模板,因此需要在模板中调用模板。下面的简化示例:

主页模板:

<!doctype html>
<html lang="en">
<head>
    ...
</head>
<body>
...

{#insert pageContent}<h1>No body!</h1>{/}

...
</body>
</html>

index.html 模板(作为页面模板注入的内容):

{#include webui/mainWebPageTemplate}

{#pageContent}

{! barfs here! !}
{#include webui/bootstrapComponents/modal}
{title}Add/Edit Storage Block{/title}
{/include}

{/pageContent}
{/include}

有什么我想念的吗?

4

0 回答 0