【问题标题】:Is there anyway to extend more pug files into one pug file?有没有办法将更多的哈巴狗文件扩展成一个哈巴狗文件?
【发布时间】:2022-08-14 08:05:08
【问题描述】:

抱歉,如果之前已经回答过这个问题,我无法在任何地方找到它,但我知道在 pug 中它允许您将一个 Pug 文件的内容插入到另一个文件中。我想知道是否可以将多个文件中的多个内容直接插入一个文件?每当我尝试在 question-display.pug 中添加另一行时,我都会遇到麻烦。

./questions/question-display.pug
extends ../layout.pug
include ../utils.pug
block content
/.answers/answer-form
h2 Your Answer
        +errorBlock(errors)
        form(method=\"post\" action=\"/answers/new\")
            input(type=\"hidden\" name=\"_csrf\" value=csrfToken)
            label(for=\"title\") Title

我目前有一个哈巴狗文件来显示一个问题,我想直接在我的问题显示哈巴狗中实现一个答案表格。

  • 目前尚不清楚您在问什么或遇到了什么问题。你有错误吗?如果是这样,错误是什么,导致它的代码是什么?

标签: javascript express backend pug


【解决方案1】:

我相信你正在寻找的是哈巴狗混合。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-20
    • 1970-01-01
    • 1970-01-01
    • 2017-07-16
    • 2021-06-18
    • 1970-01-01
    相关资源
    最近更新 更多