I'm trying to pass an object with circular references from node.js server to client-side javascript.  Server (node.js):  var object = { circular: object } //.... app.get('/', function(req, res){         res.render('index.jade', {o...
When I send a JSON string to a jade file for rending I'm only able to print out the string in it's entirety but not by it's elements. How do I print out specific elements or loop through the JSON string?  app.js:  var http    = require(&#...
i want to implement a google map based on its api. i want to add a path based on coordinates to it. therefore i get my coordinates from my model and want to iterate over the object to fille the map with this points. in my jade template i include the...
I've got a node.js express server running with the Jade template engine.  I've got a layout jade file which imports the body of individual views like so:  !!! html      head         title= title || 'Title not set.'      body         #...
I have a basic Express server:  // server.js: var Express = require('express'); app = Express.createServer(); app.configure(function(){   app.set('views', Path.join(__dirname, 'views'));   app.set('view engine', 'j...
I'm having difficulty getting a button to execute a javascript function when it is clicked, below is my jade file  extends layout block content   - var something = function() {   -   console.log('something')   - }    button(onclick='#...
I am trying to pass an object from the node to the client like below  render: function(req,res){     res.render('auth',{         userData : req.session.user     });   }   In my auth.jade the code is as below  script.     var data = !{JSON.str...
I've got a gulp set up to work with Stylus, Jade and tiny-lr. My problem is that when I save one jade file, it start's compiling them all, therefore live reloading fires on the first file copied to the destination, before the file I am workin...
i want to pass an array of objects from mongodb to the client...  this is the object  var objeto_img=                             {                                 name:'name of the file',                                 image:'image.jpg...
This is a somewhat noob-question for someone who had a few years of web development experience, but after not finding the answer on either Programmer Stack Exchange or Google, I have decided to ask it here.  I am using Express web framework for Node....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.