Questions tagged [pugjs]

Pug, previously called Jade, is a powerful and stylish template engine designed for use with Node.js.

PUG Parser Error: Unexpected token found at line 12, character 15

Regardless of whether I utilize gulp pug or just pug, this error keeps popping up: SyntaxError: Unexpected token (12:15) at Parser.pp$4.raise (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules&bso ...

The entire React component is not rendering as expected when calling res.render in PugJS within Express

Seeking guidance for the following issue: I have developed a PugJS view that is rendered within an ExpressJS route. In the call to the ExpressJS function res.render, the React component is included as data inside the .render() function call.... The prob ...

Using Pug/Jade, be sure to call a function during each loop iteration

I'm attempting to develop a basic app, similar to a TO-DO LIST. I want to generate divs dynamically (with incremental ids) when a Button is clicked and then enter some text into an HTML input field. For example: <div id="item1"> <div id="ite ...

Using a pug file results in an error, while jade functions perfectly

I'm facing a strange problem here. I have a simple jade/pug include setup like this: extends base.pug block vars - var title = 'Home' block body header include ./includes/header.pug A quick observation, using just extends base (without ...