Data dodania Pytanie
2017-01-11 19:01 EJS variable only being changed in current scope »
I recognise that the issue here is to do with scope, although I don't understand how, the counter variable defined in EJS outputs 0,1,1 when the site...
(0) odpowiedzi
2017-01-11 14:01 NetBeans don´t run Node.js and ejs project what is valid start file »
I want to run a project which I developed with Node and ejs. But there is a problem with the start file. What musst I change. If I start the project f...
(0) odpowiedzi
2017-01-11 14:01 How to use data in external javascript file from express »
I am creating application using node.js express where i want to pass some data from express and use in external javascript file. here is my app.js c...
(1) odpowiedzi
2017-01-10 20:01 Read image from mongoDB, send to .ejs file, display it to user. How? »
This is my first web app, so bear with me. I'm using node.js, express, mongoose. I am creating a web app that allows users to post events happening a...
(0) odpowiedzi
2017-01-10 14:01 Jquery application loading slowly »
In my application, I am using steal to load all the controllers which are needed for the current page and one more as then and structure goes somethin...
(0) odpowiedzi
2017-01-10 07:01 Can we call two diiferent controllers(canjs) in one ejs file »
I am new to canjs and ejs.I created two controllers in my js file - contacts,countries. (function(){ var CONTACTS = [ { id: 1, n...
(0) odpowiedzi
2017-01-09 23:01 why var clientPeople = <%- JSON.stringify(serverPeople) %>; console.log(typeof clientPeople); returns as object not string inside of ejs file »
This code is running inside of an ejs file: Questions is why var clientPeople = <%- JSON.stringify(serverPeople) %>; console.log(typeof clien...
(1) odpowiedzi
2017-01-09 06:01 node js (with ejs view engine) and datatables »
I am using node js with ejs view engine and mySql database. I want to use datatable in my application with Server-side processing in node js so how sh...
(0) odpowiedzi
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