Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

210
Visualizações
Is there anyway to extend more pug files into one pug file?

Sorry if this has been answered before, haven't been able to find it anywhere but I know in pug it allows you to insert the contents of one Pug file into another. I was wondering if it is possible to insert multiple contents from multiple files into directly one file? I'm having trouble doing so whenever I try to add another line of to my 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

I have currently have a pug file to display a question and I want to implement an answer form directly into my question display pug.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda