Data dodania Pytanie
2017-01-09 00:01 Passing dynamical information using ejs and html »
so I am trying to pass some variable ( number) data to a email template. I am trying to use the ejs like this : var compiled = ejs.compile(fs.readFil...
(1) odpowiedzi
2017-01-08 20:01 Display Mongoose Grouped By Data in EJS »
I have mongoose data, queried using aggregate group by, which I want to display in EJS. // route.js router.route('/') .post(function(req,...
(0) odpowiedzi
2017-01-07 17:01 Node express server not serving images folder »
When I run my bundled React app on the production server, it can't find my image files and I'm not sure why. I'm fairly sure it's got something to do ...
(1) odpowiedzi
2017-01-06 21:01 sw-precache-webpack-plugin webpack service worker default template »
I'm using the sw-precache-webpack-plugin to generate a service worker for my project, I can see all my fonts, js and css files in the cache storage bu...
(1) odpowiedzi
2017-01-06 16:01 EJS conditional IF »
newbie to EJS here, Tried to get data from MongoDB and display in view. If there is no data, display "otherCondition", if there is data, do loop and ...
(0) odpowiedzi
2017-01-06 14:01 Elasticsearch with node js: List all the types and fields of an index »
I can get the mapping of an elasticsearch index like this: module.exports.indexMap = function (Data, callback) { client.indices.getMapp...
(0) odpowiedzi
2017-01-05 17:01 Passing a sql table created with alasql from Server (node.js) to Client (ejs) »
I would be very glad to get some help on the following topic, given I didn't manage to get through it. My objective is to gather some data on the serv...
(1) odpowiedzi
2017-01-05 09:01 Express app with EJS template giving Error: Failed to lookup view "/id" in views directory "/home/USER/Desktop/scholarship-app/views" »
I am trying to render the request url for id in my express app and getting the following error Error: Failed to lookup view "/id" in views directory ...
(1) odpowiedzi
2017-01-04 16:01 How can I retrieve the properties of a data object in EJS/node.js? »
I am passing a data object, as a parameter, to the render method, and assigning to it the variable name "values". app.get('/', function(req, res) { ...
(2) odpowiedzi
2017-01-04 13:01 Is there a nice way to route using EJS teamplate avoiding repetition with Express server? »
Let's say that my app has two view: index.ejs, profile/index.ejs I want to route using express code like below. /* GET home page. */ router.get('/', ...
(2) odpowiedzi
2017-01-04 02:01 how let html-webpack-plugin works with backend render ejs? »
I want use it with the backend render template ejs . But the plugin render it as a front template. does any one know how to deal this case ? ...
(0) odpowiedzi
2017-01-03 22:01 EJS error: Unexpected token < in NodeJS app »
I'm building a NodeJS application with the EJS template engine. I've used the same syntax as I did in an app I've build earlier, but on every rendered...
(0) odpowiedzi
2017-01-03 18:01 separate data retrieval process from main file while including parts in EJS »
I do <% include header.ejs %> in most of my ejs files. The header.ejs will contain dynamic data from the database. I want to separate the getti...
(0) odpowiedzi
2017-01-01 23:01 EJS conditional statement change CSS »
I have loop in EJS and I want to set css based on my data: <% dummies.forEach(function(dummy) { %> <div class="panel panel-???"> &l...
(2) odpowiedzi
2016-12-30 21:12 EJS include partials and declare variables for partials - Nodejs »
I have an EJS file where I include a header: <% include ../partials/header %> In that header I have some tags (title, description) which have ...
(0) odpowiedzi
2016-12-30 20:12 Javascript not linking properly with node app »
Using Node/Express/EJS and I havent included any js files yet, well im starting to and cannot get my alert("working"); to work! Ironic huh. The goal...
(2) odpowiedzi
2016-12-30 18:12 EJS includes not working »
I have an EJS file called 'test.ejs', which contains: <p>This is a test statement</p> Then, I have another file called 'index.ejs' whi...
(0) odpowiedzi
2016-12-29 22:12 Serve one app path with React and serve other paths with EJS »
Currently my express app renders all paths with EJS. I'd like to replace one path in particular to render with React on the client side. That particul...
(0) odpowiedzi
2016-12-29 20:12 How can I dynamically populate html data in node for posting, not displaying? »
I'm currently trying to populate html data in a file stream so that I can send it in an email using smtpTransport. I've tried to use ejs but almost ev...
(1) odpowiedzi
2016-12-29 19:12 What to look out for when putting React into an EJS application »
I have been coding my app in node/express/ejs, now I am going to start to build the rest of it in React/JSX/Webpack. Is there anything I need to know ...
(0) odpowiedzi
2016-12-28 22:12 Using AJAX in Node.js with ejs »
I am tring to figure out how to use ajax in node.js I have this for now. How do i display for example order[0].name and order[1].name inside my div i...
(3) odpowiedzi
2016-12-28 07:12 pass data from ajax success data to ejs templates »
I just started to use ejs. Now, I want to pass data gotten from ajax result to two different div in ejs. I can pass to a single div but for multiple...
(1) odpowiedzi
2016-12-28 04:12 NodeJS Update API - Internal Server Error »
It's about time I call in the big guns for this as I can't seem to figure it out. I have a simple CRUD API in Node. I'm using EJS on the front-end. ...
(2) odpowiedzi
2016-12-27 21:12 What is the difference between ejs <%= and encodeURI for a JSON string result? »
So far according to my googling, escape was part of js and is deprecated and use encodeURI instead. But what about the <%= tag for ejs to escape va...
(1) odpowiedzi
2016-12-27 15:12 Elasticsearch show only the name of all indices with node js »
I am using ejs framework with node js. I can get all the index names in json format. But what I want is just the names of the indices. My code looks l...
(1) odpowiedzi
2016-12-26 21:12 Node.js - Passing multiple objects to same EJS file »
I have multiple MySQL query results where I render the first and make callable the rest ones to a single EJS file (/data) as objects. I render only t...
(1) odpowiedzi
2016-12-26 09:12 app.use ("*") seems to be calling function multiple times »
app.use("*", topUsers) is called multiple times.. topUsers is being called multiple times function topUsers(req, res, next){ console.log("req.ur...
(1) odpowiedzi
2016-12-25 22:12 Sequelize Pulling data from multiple tables and passing as objects to render in EJS »
am new to Node Js and associated programmes. Currently trying to create an app which uploads images with captions etc and for users to like and commen...
(1) odpowiedzi
2016-12-25 12:12 passing ejs array to javascript function »
How do I pass an ejs array in a javascript function? function validate(array) { alert("Here"); var ok = false; var emailva = document.getElementById...
(1) odpowiedzi
2016-12-25 01:12 Create reusable partial view in sails js »
I need to create a reusable "featured listings" ui component in my sails js app. I'm using the default ejs template engine. Basically this "featured l...
(0) odpowiedzi
2016-12-23 17:12 Sending ejs template using nodemailer »
I'm trying to build a web application using express.js. In my application, I'm using nodemailer for sending mail. If I just use it to send basic mail ...
(1) odpowiedzi
2016-12-23 08:12 NodeJS returns no results with Elasticsearch / Mongoosastic »
I'm trying to create a simple search form to search in one Model (Products). Here is my Product Model using Mongoosastic: var ProductSchema = new Sc...
(1) odpowiedzi
2016-12-23 08:12 ejs - looking to add if condition in EJS template »
Hi I am just start to use EJS. Now I need to check condition so I use if condition in EJS, but while running it shows error. The code I am trying is ...
(1) odpowiedzi
2016-12-22 18:12 print variable returned by server in node.js »
I'm creating a node.js app. I have a list with 4 types of movies (see below). When I click one of these types I make a call to the server, then the ...
(1) odpowiedzi
2016-12-22 15:12 Loop througth string consists of array in ejs file in node js »
I am working on node project. I am able to loop through array but my requirement is to loop through string consists of array. Example of my object key...
(0) odpowiedzi