【问题标题】:Jade / Pug version of <template> </template> tagsJade / Pug 版本的 <template> </template> 标签
【发布时间】:2017-05-31 13:49:29
【问题描述】:

我今天和一个朋友一起工作,他使用 EJS 作为模板,而我正在使用 Jade / Pug,我在他的代码中看到了一些东西,这部分对我很有用但我们找不到与此标签相关的任何内容,有任何想法吗 ?

<template id="thumbTemplate">
    <div class="col-sm-6 col-md-2">
        <div class="thumbnail">
            <a href = "#">
                <img src = "">
            </a>
        </div>
        <p style="text-align: center; font-size: 20px"></p>
        <p style="text-align: center; font-size: 20px" id="score"></p>
        <p style="text-align: center; font-size: 20px" id="dist"></p>
    </div>
</template>

感谢您的帮助。

【问题讨论】:

    标签: node.js pug ejs html5-template


    【解决方案1】:

    您指的是“模板”标签吗?如果是这样,这里有一些关于这个标签的信息:https://www.html5rocks.com/en/tutorials/webcomponents/template/

    【讨论】:

    • 感谢您的链接!我没有找到与我的问题相关的任何内容,它没有指定我不能在 Pug 中使用它。
    猜你喜欢
    • 2021-08-10
    • 2019-05-19
    • 2017-10-11
    • 1970-01-01
    • 2011-04-02
    • 1970-01-01
    • 2017-01-24
    • 1970-01-01
    • 2016-08-12
    相关资源
    最近更新 更多