Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

pug

Return node.js sql result to other file

November 26, 2022 by Magenaut

I want to create a Website where I can display results from my mysql database.
I finished the website and the sql query, but I am stuck to return my SQL result.
Here is my code for my server with nodejs to display my pug file:
app.js

Categories MySQL, Q&A Tags html, mysql, node.js, pug Leave a comment

Placing tags on both sides of HTML content with Pug

November 13, 2022 by Magenaut

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.

Categories HTML, Q&A Tags html, pug Leave a comment

How to prevent normal cursor behavior when pressing keys in a textarea

November 13, 2022 by Magenaut

I have the following code

Categories HTML, Q&A Tags html, javascript, pug, vue.js Leave a comment

Modal content duplicate

November 12, 2022 by Magenaut

So the button works content works fine but until I click on the button it duplicates the first array content, I have tried using the solutions to the other answers on another stackoverflow post but they don’t help me or work. Please help

Categories HTML, Q&A Tags bootstrap-modal, html, pug Leave a comment

Why does http header error show up and where is the flaw?

October 13, 2022 by Magenaut

I was trying to get XML and parse it to JSON. There are 2 files of included here.
But I keep getting this error. I’ve tried to look around SO and still doesn’t get answers.

Categories Node.js, Q&A Tags express, javascript, node.js, pug Leave a comment

Does Pug have access to any server-side functions/variables when rendering a template in Express?

October 13, 2022 by Magenaut

lets say I’d defined a variable inside my app, and I wanted to use that variable in my Pug template. Is it possible for Pug to access this variable if I don’t pass it through in the render statement?

Categories Node.js, Q&A Tags express, node.js, pug Leave a comment

Dynamic data of pug template not getting saved, when sending template to email

October 11, 2022 by Magenaut

I have created an email template, using the pug engine. The template is inside the views folder and the name is index.pug.

Categories Node.js, Q&A Tags node.js, nodemailer, pug Leave a comment

Node.js – Sequelize.js | Create Dynamic Database Connection

October 10, 2022 by Magenaut

I am writing a simple CMS with Node.js and Sequelize.js. I want to get database information from user like WordPress and create database connection. I wrote the codes below for this but my problem is application don’t start before database connection.

Categories Node.js, Q&A Tags express, node.js, pug, sequelize.js Leave a comment

this is not working, static css and JavaScript using pug

October 10, 2022 by Magenaut

pug

Categories Node.js, Q&A Tags node.js, pug Leave a comment

How to separate month and year in Date in pug

October 10, 2022 by Magenaut

This is the format of date saved in MongoDB:

Categories Node.js, Q&A Tags express, mongodb, mongoose, node.js, pug Leave a comment
Older posts
Page1 Page2 … Page11 Next →

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress