Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!