Using Pug & HTML with NodeJSWhat are valid values for the id attribute in HTML?Convert HTML + CSS to PDF with PHP?Where should I put <script> tags in HTML markup?Retrieve the position (X,Y) of an HTML elementHTML 5: Is it <br>, <br/>, or <br />?How to create an HTML button that acts like a link?Redirect from an HTML pageHow can I update NodeJS and NPM to the next versions?Why does HTML think “chucknorris” is a color?What is the purpose of the “role” attribute in HTML?

Why do some professors with PhDs leave their professorships to teach high school?

C-152 carb heat on before landing in hot weather?

Importance of the principal bundle in Chern-Simons theory

Does the posterior necessarily follow the same conditional dependence structure as the prior?

Why does the numerical solution of an ODE move away from an unstable equilibrium?

Are there any vegetarian astronauts?

Alphabet completion rate

Is there any evidence that the small canisters (10 liters) of 95% oxygen actually help with altitude sickness?

Hot coffee brewing solutions for deep woods camping

Does Marvel have an equivalent of the Green Lantern?

Peace Arch without exiting USA

Would a two-seat light aircaft with a landing speed of 20 knots and a top speed of 180 knots be technically possible?

Apply brace expansion in "reverse order"

Why would people reject a god's purely beneficial blessing?

Intuitively, why does putting capacitors in series decrease the equivalent capacitance?

What are the benefits of using the X Card safety tool in comparison to plain communication?

How to perform Login Authentication at the client-side?

Story-based adventure with functions and relationships

try to discover the pattern

Why is Madam Hooch not a professor?

Cascading Repair Costs following Blown Head Gasket on a 2004 Subaru Outback

Impossible darts scores

Changing the opacity of lines on a plot based on their value

Is there a maximum distance from a planet that a moon can orbit?



Using Pug & HTML with NodeJS


What are valid values for the id attribute in HTML?Convert HTML + CSS to PDF with PHP?Where should I put <script> tags in HTML markup?Retrieve the position (X,Y) of an HTML elementHTML 5: Is it <br>, <br/>, or <br />?How to create an HTML button that acts like a link?Redirect from an HTML pageHow can I update NodeJS and NPM to the next versions?Why does HTML think “chucknorris” is a color?What is the purpose of the “role” attribute in HTML?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I am creating a data dashboard that pulls data from a database and displays the data across a number of tabs, using NodeJS and PUG as the templating engine.



I am having no issues directly with using PUG, I quite enjoyed learning to use it and enjoy the easy-to-learn syntax. However, now I am starting to design an Admin back-end section which will contain a number of validated forms for manual data imports.



My question is, for these back-end forms which would not be accessed as much as the front-end dashboard and would also be heavily validated, would it be more efficient to resort to using HTML for these forms.
I'm not sure whether PUG would be the most efficient for creating these forms and as the back-end is not performance dependent, would using PUG have any other impacts?



TLDR: Would it make sense to use PUG for the front-end of a data dashboard whilst resorting to HTML for back-end forms.



Thanks for your time.










share|improve this question
























  • Hi J_C, regarding my experience, I can't see any reason not to use jade/pug for your back-office too. Do you have more specific questions about it ?

    – Django Janny
    Mar 25 at 11:04











  • Hi and thanks for taking the time to respond, I am a lot more experienced in HTML compared with PUG and therefore would be more comfortable creating forms w/ validation in html, if this causes no issues, however if this is just as achievable and simple in PUG it may be an idea to not mix them together.

    – J_C
    Mar 25 at 11:15











  • The more you work with Pug, the more you'll appreciate its efficiencies over HTML. And the better you'll get at it. I can't think of any application where I'd rather use vanilla HTML over Pug.

    – sean
    Mar 25 at 21:55

















1















I am creating a data dashboard that pulls data from a database and displays the data across a number of tabs, using NodeJS and PUG as the templating engine.



I am having no issues directly with using PUG, I quite enjoyed learning to use it and enjoy the easy-to-learn syntax. However, now I am starting to design an Admin back-end section which will contain a number of validated forms for manual data imports.



My question is, for these back-end forms which would not be accessed as much as the front-end dashboard and would also be heavily validated, would it be more efficient to resort to using HTML for these forms.
I'm not sure whether PUG would be the most efficient for creating these forms and as the back-end is not performance dependent, would using PUG have any other impacts?



TLDR: Would it make sense to use PUG for the front-end of a data dashboard whilst resorting to HTML for back-end forms.



Thanks for your time.










share|improve this question
























  • Hi J_C, regarding my experience, I can't see any reason not to use jade/pug for your back-office too. Do you have more specific questions about it ?

    – Django Janny
    Mar 25 at 11:04











  • Hi and thanks for taking the time to respond, I am a lot more experienced in HTML compared with PUG and therefore would be more comfortable creating forms w/ validation in html, if this causes no issues, however if this is just as achievable and simple in PUG it may be an idea to not mix them together.

    – J_C
    Mar 25 at 11:15











  • The more you work with Pug, the more you'll appreciate its efficiencies over HTML. And the better you'll get at it. I can't think of any application where I'd rather use vanilla HTML over Pug.

    – sean
    Mar 25 at 21:55













1












1








1








I am creating a data dashboard that pulls data from a database and displays the data across a number of tabs, using NodeJS and PUG as the templating engine.



I am having no issues directly with using PUG, I quite enjoyed learning to use it and enjoy the easy-to-learn syntax. However, now I am starting to design an Admin back-end section which will contain a number of validated forms for manual data imports.



My question is, for these back-end forms which would not be accessed as much as the front-end dashboard and would also be heavily validated, would it be more efficient to resort to using HTML for these forms.
I'm not sure whether PUG would be the most efficient for creating these forms and as the back-end is not performance dependent, would using PUG have any other impacts?



TLDR: Would it make sense to use PUG for the front-end of a data dashboard whilst resorting to HTML for back-end forms.



Thanks for your time.










share|improve this question
















I am creating a data dashboard that pulls data from a database and displays the data across a number of tabs, using NodeJS and PUG as the templating engine.



I am having no issues directly with using PUG, I quite enjoyed learning to use it and enjoy the easy-to-learn syntax. However, now I am starting to design an Admin back-end section which will contain a number of validated forms for manual data imports.



My question is, for these back-end forms which would not be accessed as much as the front-end dashboard and would also be heavily validated, would it be more efficient to resort to using HTML for these forms.
I'm not sure whether PUG would be the most efficient for creating these forms and as the back-end is not performance dependent, would using PUG have any other impacts?



TLDR: Would it make sense to use PUG for the front-end of a data dashboard whilst resorting to HTML for back-end forms.



Thanks for your time.







javascript html node.js pug






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 10:58









Sabir Al Fateh

1,0422 gold badges11 silver badges25 bronze badges




1,0422 gold badges11 silver badges25 bronze badges










asked Mar 25 at 10:31









J_CJ_C

839 bronze badges




839 bronze badges












  • Hi J_C, regarding my experience, I can't see any reason not to use jade/pug for your back-office too. Do you have more specific questions about it ?

    – Django Janny
    Mar 25 at 11:04











  • Hi and thanks for taking the time to respond, I am a lot more experienced in HTML compared with PUG and therefore would be more comfortable creating forms w/ validation in html, if this causes no issues, however if this is just as achievable and simple in PUG it may be an idea to not mix them together.

    – J_C
    Mar 25 at 11:15











  • The more you work with Pug, the more you'll appreciate its efficiencies over HTML. And the better you'll get at it. I can't think of any application where I'd rather use vanilla HTML over Pug.

    – sean
    Mar 25 at 21:55

















  • Hi J_C, regarding my experience, I can't see any reason not to use jade/pug for your back-office too. Do you have more specific questions about it ?

    – Django Janny
    Mar 25 at 11:04











  • Hi and thanks for taking the time to respond, I am a lot more experienced in HTML compared with PUG and therefore would be more comfortable creating forms w/ validation in html, if this causes no issues, however if this is just as achievable and simple in PUG it may be an idea to not mix them together.

    – J_C
    Mar 25 at 11:15











  • The more you work with Pug, the more you'll appreciate its efficiencies over HTML. And the better you'll get at it. I can't think of any application where I'd rather use vanilla HTML over Pug.

    – sean
    Mar 25 at 21:55
















Hi J_C, regarding my experience, I can't see any reason not to use jade/pug for your back-office too. Do you have more specific questions about it ?

– Django Janny
Mar 25 at 11:04





Hi J_C, regarding my experience, I can't see any reason not to use jade/pug for your back-office too. Do you have more specific questions about it ?

– Django Janny
Mar 25 at 11:04













Hi and thanks for taking the time to respond, I am a lot more experienced in HTML compared with PUG and therefore would be more comfortable creating forms w/ validation in html, if this causes no issues, however if this is just as achievable and simple in PUG it may be an idea to not mix them together.

– J_C
Mar 25 at 11:15





Hi and thanks for taking the time to respond, I am a lot more experienced in HTML compared with PUG and therefore would be more comfortable creating forms w/ validation in html, if this causes no issues, however if this is just as achievable and simple in PUG it may be an idea to not mix them together.

– J_C
Mar 25 at 11:15













The more you work with Pug, the more you'll appreciate its efficiencies over HTML. And the better you'll get at it. I can't think of any application where I'd rather use vanilla HTML over Pug.

– sean
Mar 25 at 21:55





The more you work with Pug, the more you'll appreciate its efficiencies over HTML. And the better you'll get at it. I can't think of any application where I'd rather use vanilla HTML over Pug.

– sean
Mar 25 at 21:55












0






active

oldest

votes














Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55335780%2fusing-pug-html-with-nodejs%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55335780%2fusing-pug-html-with-nodejs%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript