node.js - Why aren't all my images showing? -


i'm using express.js jade , running issue. i've got 6 images 2 of them won't show on page. can go local:3000/images/a.png , see them not see them on page? of jade html:

          .span4             img(src='/images/a.png', class='img')           .span4             img(src='/images/b.png', class='img')           .span4             img(src='/images/c.png', class='img')         .row-fluid           .span4             img(src='/images/d.png', class='img')            .span4             img(scr='/images/e.png', class='img') # not working           .span4             img(scr='/images/f.png', class='img') # not working 

here app.js if helps:

var express = require('express')   , routes = require('./routes')   , user = require('./routes/user')   , http = require('http')   , path = require('path');  var app = express();  // environments app.set('port', process.env.port || 3000); app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); app.use(express.favicon(__dirname + '/public/images/icon.ico')); app.use(express.logger('dev')); app.use(express.bodyparser()); app.use(express.methodoverride()); app.use(app.router); app.use(express.static(path.join(__dirname, 'public')));   // development if ('development' == app.get('env')) {   app.use(express.errorhandler()); }  app.get('/', routes.index); app.get('/users', user.list);  http.createserver(app).listen(app.get('port'), function(){   console.log('express server listening on port ' + app.get('port')); }); 

anyone else run this? do?

hehe, because have typo in jade file.

double check img tag - it's (as know) supposed src not scr:

      .span4         img(scr='/images/e.png', class='img') # not working       .span4         img(scr='/images/f.png', class='img') # not working 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -