Top "Ejs" questions

"E" is for "embedded.

NodeJs and Ejs Pass Arrays to page

I am trying to pass an array to an .ejs page, however when I try use var test ="<%= data %&…

node.js express ejs locomotivejs
How do I generate JSON with ExpressJS/RailwayJS (Node.JS)

I was exploring developing in Node.JS and found ExpressJS and RailwayJS (based on Express) which are frameworks for Node. …

node.js express pug ejs railway.js
Pass variable to EJS include

I have a global header used in a couple of places and I was trying to define its location in …

node.js ejs
Multiple variables declaration in ejs

I am trying to declare and assign a default value to multiple variables. But the value is only getting assigned …

node.js sails.js ejs embedded-javascript
How to comment ejs code ( JS node)

I have this code in an ejs File. <table> <% for(var i=0; i < data.length; i++) { %&…

javascript node.js ejs
Why is request.body undefined?

I have a node-js server which includes bodyparser and everything: var express = require('express'); var dbcon = require('./app/db/…

node.js express request ejs body-parser
Sublime Text 3 Package for EJS formatting

I'm looking for a package to format my ejs files. I already found "html-css-js prettify" and set "ejs" as an …

sublimetext3 ejs embedded-javascript
ejs include function can not find the template with html extension

My ejs engine set up is app.js is like below: // this parse html file as ejs file app.engine(…

node.js express ejs
how to access assets/images from the view in Sails.js?

I simply want to add an image in a view in my Sails-Project My view-file has the location views/album/…

html ejs sails.js
How should I use ejs to render table vertically?

I have an array like the following: quotation: [{ "dimension" : 0, "currency": "RMB", "quantity": "100", "price": "3", "factory": "rx"}, { "dimension" : 0, "currency": "RMB", "quantity": "200", "price": "4", "…

javascript ejs embedded-javascript