Questions tagged [embedded-javascript]
Embedded JavaScript templates for node
4
questions
5
votes
1answer
6k views
Nodejs - How to show qr-image result in view
I use qr-image plugin for Nodejs to generate a QR code and it works pretty good.
The problem is showing result image in ejs.
var express = require('express');
var router = express.Router();
var qr = ...
4
votes
1answer
3k views
how to format a date in embeddedjs
app.js
app.get('/user.html', function(req, res){
dbConnect.collection("users").find().toArray(function(err, docsData) {
res.render('user', {
data: docsData,
title: ...
3
votes
1answer
2k views
How to include a JS script in a ejs file, nodeJS app?
I'm doing the nodeJS tuto on openclassroom.
I use the template engine ejs. I try to run a simple JS script but I can't.
Here is my app structure:
App_toDoList/
│
├──app.js
├──package-lock.json
├──...
1
vote
1answer
6k views
Express + Node.js Can't get Image to load
Very new to MEAN Stack and I'm using Brackets to edit .ejs views for a simple form app using Express tutorial. I'm trying load a static image and it just won't load. I'm getting GET /public/ggcbear....