Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7652417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:45:49+00:00 2026-05-31T11:45:49+00:00

After doing some research, everyone seems to advise learning and using some form of

  • 0

After doing some research, everyone seems to advise learning and using some form of a templating language with node.js. Why? Couldn’t you just use HTML, and if so, how? I’m new to Node, so I downloaded Express and immediately I asked myself, “What is .jade?”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:45:50+00:00Added an answer on May 31, 2026 at 11:45 am

    There is no requirement, but it can be much nicer. You can just as easily manually output HTML, but then you are forced to keep all of your HTML inside of JS strings at all times, or keep it in a file.

    You’d do something like this:

    res.send("<html><body>" + content + "</body></html>");
    

    As soon as you want to have dynamic HTML, you either need to include it directly in your code, or you need to have it in a template. The difficulty is that you can’t just throw standard HTML in a file, because that essentially makes it impossible to dynamically alter the page. To solve this problem, usually you’d dynamically generate HTML using some kind of templating language like jade.

    For a tiny one-off app, it may not be a big deal, but separating your presentation HTML from your code becomes very important as the size of the app you are developing grows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

after doing some research it seems that AppDomains are not really a tool for
Edit Ok, after doing some research it seems to be the clearfix I am
After doing some research on this issue, I couldn't find any satisfying fix. The
I've got a Java/Flex project that I'm building using Maven. After doing some research
After doing some research here, and using Google I'm still confused as to why
After doing some research on the subject, I've been experimenting a lot with patterns
After doing some research, it would seem that errno 150 occurs when either table
I think it is not complicated but after doing some research I can't find
After doing some research I heard only PHP 5.3.6+ supports PDO and SSL. I
After doing some research into Dateperiod, it turns out it by default excludes the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.