So I’m still learning node js and pug and the project I’m working on I want to insert each symbol onto its own line with its own element and it’s not working at all. Its sticking everything into one p tag and I’m not sure what to look up to fix it controller exports.getAllSymbols =… Read More Pug tempalate/mixin not seperating inserted data
I’m trying to count the number of NA values in each of 2 columns. The code below works. temp2 %>% select(c18basic, c18ipug) %>% summarise_all(funs(sum(is.na(.)))) But I get this warning: Warning message: `funs()` was deprecated in dplyr 0.8.0. Please use a list of either functions or lambdas: # Simple named list: list(mean = mean, median =… Read More rewriting `summarise_all` without deprecated `funs`, using Simple list and Auto-named list
I’m a beginner web developer who is using Pug for a Node JS school assignment. I’ve been struggling trying to figure out how to place two tags on both sides of the content of their parent tag. For Example, if I wanted to achieved something like this HTML: <h2> <span> Span Content </span> H2 Content… Read More Placing tags on both sides of HTML content with Pug
I am creating an app using Express.js and Pug as a view engine. It has a navigation bar redirecting the user to the 3 possible pages: Homepage, Contact, and Our Services. The issue here is that only the homepage appears successfully. The rest of the pages (contact.pug and our-services.pug) show me the error: "GET http://localhost:3004/contact… Read More Express using Pug: GET http://localhost:3004/contact 404 (Not Found)
I am trying to use some code written in Pug, in a JS react app. I have found this plugin here that will convert the code, but there is a problem. It states that it cannot convert "." statements, of which there are a few. So what do I replace the "."s with to make… Read More What do you use instead of "." in Pug?