Questions tagged [jade4j]

jade4j's intention is to be able to process jade templates in Java without the need of a JavaScript environment, while being fully compatible with the original jade syntax.

jade4j's intention is to be able to process jade templates in Java without the need of a JavaScript environment, while being fully compatible with the original jade syntax (source).

52 questions
0
votes
0 answers

How to perform the arithmetic operations in pug

I am having the below lines of code in which I am trying to subtract two results to get the third result, but I am getting an error. Please tell me how I will perform the subtraction in Pug. Code: mixin dispatch-summary(dispatched) - var count =…
user9222666
0
votes
1 answer

Print based on a condition in Jade

I am trying to display some information based on a condition in Jade. But seems like the else statement is always executing. My first statement is if the message is string then it should execute the if statement else it should print the else…
user9222666
0
votes
1 answer

How to describe multiple tags in one line in jade template?

I like to use jade template in express project. And sometimes I face with these problems. For example, li: b PHONE li +7 (914) 3164890 Can I put these codes in one line? Is it possible in jade template? If not possible, which html preprocessor do I…
0
votes
2 answers

can't find runtime.js in pug folder

as official tutorial said: Be sure to send the Pug runtime (node_modules/pug/runtime.js) to the client in addition to the template that you just compiled. but actually cannot find out in node_modules/pug folder. in addition, i searched each…
Sunny Sun
  • 65
  • 5
  • 13
0
votes
1 answer

Node.js Module for Popups in Jade

I have a Application in Node.js with the Template Engine Jade. I need a module to show a message Box or similar, when the user clicks on a submit button, Like "Do you really submit?"
user8264861
0
votes
1 answer

Read Spring ModelAndView objects in Pug

My front-end application uses Pug to generate the index page. Being a Vue.js application, it can be served from Java (production purpose) or Node (develop purpose) DEVELOP Variables in index.pug are injected by running this command: pug -P -s -O…
Andrea Grimandi
  • 631
  • 2
  • 8
  • 32
0
votes
1 answer

Node.js login form render: Error Can't set headers after they are sent

I want to re-render a jade from node.js to set an errormessage. I get the Error "Can't set headers after they are sent". This is my Code... app.post('/login', function (req, res) { checkUserAndPassword(req.body.mail, req.body.password, function…
0
votes
0 answers

Unexpected character  in Jade

Whats wrong in the jade template below. When i tried to find out by converting the jade to html, i get error as unexpected  extends layout block content .container h1 Register Page p.lead Say something worthwhile here. br form(role='form',…
phyme
  • 331
  • 2
  • 11
  • 25
0
votes
1 answer

Gulp SVG Icons to output an HTML file for partial view

So I am using GULP to build a SPA Styleguide for a large company. I have all of the SVG Icons being generated into a font in my gulp file. What I wanted to build was an HTML file I can use as a partial view (angular) so whenever someone tosses in a…
Robert Wojtow
  • 321
  • 2
  • 3
  • 8
0
votes
1 answer

Node.js SELECT*FROM a table in a SQL database

My problem is that I can enter data from my input boxes into an SQL table, but the problem is that the text from the table will not show on the page i want to. What works is that the playlist page will show the a href links depending on how many…
0
votes
1 answer

Dynamic flash messages in jade

I am trying to make a dynamic page where the flash messages are only shown when there's an actual flash message. The text of the message is only shown when the if statement is true, but the div with it's background color is always shown (the classes…
DowinskiField
  • 133
  • 2
  • 15
0
votes
1 answer

Showing form validation errors in jade

I am trying to show the errors upon submitting the register form, but the errors show up in the following manner (where as each line is 1 error): [object Object] [object Object] [object Object] [object Object] Validation…
DowinskiField
  • 133
  • 2
  • 15
0
votes
1 answer

Invalid indentation in Jade

I'm getting below error while trying to insert a script file in Jade Can anyone please help? form(method='post', action='/posts/add', enctype="mutilpart/form-data") .form-group label Title: input.form-control(name='title',…
Mohan
  • 1
0
votes
1 answer

Incorrect pug/jade variable scope using jade4j

I am trying the following jade template. My expectation is that at the end of the loop the value of test should be 5 -test = 0 -var array = [1,2,3,4,5] p before loop: #{test} for element in array - test++ p after loop: #{test} And actually is…
dawez
  • 2,714
  • 2
  • 29
  • 50
0
votes
1 answer

Pug not closing title tag

I am trying to learn Pug. Right now I am trying to get a very simple tutorial template working, but Pug kind of acts like a feminist at Trump's inauguration. I've managed to get the template working and display stuff. But as soon as I move the…
Tamás Polgár
  • 2,082
  • 5
  • 21
  • 48