<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lang.javascript.express">
    <title>gmane.comp.lang.javascript.express</title>
    <link>http://blog.gmane.org/gmane.comp.lang.javascript.express</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/935"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/932"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/928"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/927"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/925"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/913"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/909"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/908"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/903"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/899"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/896"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/894"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/892"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/888"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/887"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/886"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/882"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/877"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/876"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.javascript.express/875"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/935">
    <title>ISO date to log</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/935</link>
    <description>&lt;pre&gt;Hi!

I cannot find much documentation of the express.logger format. By
googling for some examples, I'm currently running this kind of logger:

app.use(express.logger('[:date]: remote-addr :req[X-Forwarded-For]
:method :url HTTP/:http-version :status :res[content-length] -
:response-time ms'));

However, that date seems to use this:
new Date().toUTCString();

but I really want to have the date in the ISO 8601 standard format:
new Date().toISOString();

So, how do I do that?

&lt;/pre&gt;</description>
    <dc:creator>HG</dc:creator>
    <dc:date>2012-05-23T10:20:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/932">
    <title>Jade installation problem on express 3.0</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/932</link>
    <description>&lt;pre&gt;npm install jade
TypeError: Bad argument
npm ERR!     at Object._open (fs.js:224:11)
npm ERR!     at open (/usr/local/lib/node_modules/npm/node_modules/
graceful-fs/graceful-fs.js:73:6)
npm ERR!     at Object.open (/usr/local/lib/node_modules/npm/
node_modules/graceful-fs/graceful-fs.js:67:3)
npm ERR!     at Object.lutimes (/usr/local/lib/node_modules/npm/
node_modules/graceful-fs/graceful-fs.js:28:6)
npm ERR!     at setProps (/usr/local/lib/node_modules/npm/node_modules/
fstream/lib/writer.js:267:18)
npm ERR!     at Object.oncomplete (/usr/local/lib/node_modules/npm/
node_modules/fstream/lib/writer.js:205:7)
npm ERR! Report this *entire* log at:

&lt;/pre&gt;</description>
    <dc:creator>rkjha</dc:creator>
    <dc:date>2012-05-23T08:33:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/928">
    <title>Why are all my URLs appended with #_=_</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/928</link>
    <description>&lt;pre&gt;I have a simple Express app and whenever I call res.redirect() the 
resulting URL has a #_=_ appended to it at the end.

Any ideas why this happens?

Thanks,
Roy

&lt;/pre&gt;</description>
    <dc:creator>Roy Hasson</dc:creator>
    <dc:date>2012-05-22T23:29:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/927">
    <title>Translations (i18n) in Express</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/927</link>
    <description>&lt;pre&gt;Hi,

I found in this group a really old topic about i18n in Express. I'm now 
starting to develop a rather big application with Express and I want it to 
be internationalized.

I know Express won't have anything like that incorporated by default and I 
like it. But are any of you developers have by the time any preferences on 
which i18n module to choose? Node.js modules list&amp;lt;https://github.com/joyent/node/wiki/modules#wiki-i18n&amp;gt;has about 15 different node.js modules for this (some for l10n). Any advice 
from someone with experience in this field?

Thanks,
Piotrek

&lt;/pre&gt;</description>
    <dc:creator>Piotr Rybałtowski</dc:creator>
    <dc:date>2012-05-20T08:26:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/925">
    <title>How do I get the query string from a request?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/925</link>
    <description>&lt;pre&gt;I would appreciate some help with a basic problem I'm having. I'm sure
there's something I'm missing in the documentation. I'm running Ubuntu
12.04 in a VM using node.js 0.6.16 and express 2.5.9.

My problem is that I am unable to grab the full query string from a
request. Here is the code I am trying to use:

"var express = require('express'), app = express.createServer();

app.get('/fetch', function(req, res) {
console.log(req);
res.send("query: " + JSON.stringify(req.query));
});

app.listen(3000);
console.log("Server started.");"

Next, I try the following command with the server running:

curl localhost:3000/fetch?a=b&amp;amp;c=d&amp;amp;e=f

Here is the response:

"[1] 5588
[2] 5589
robert&amp;lt; at &amp;gt;robert-VirtualBox:~/app$ query: {"a":"b"}
[1]-  Done                    curl localhost:3000/fetch?a=b
[2]+  Done                    c=d"

What's more is that, when I dig into the req object I logged in the
console, I see that it has the property originalUrl: '/fetch?a=b',
which is not the URL requested. Have I misconfigured Express in some
way? I am sure that I have, but I don't know how.

&lt;/pre&gt;</description>
    <dc:creator>Robert</dc:creator>
    <dc:date>2012-05-21T07:44:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/913">
    <title>Examples of using compiled jade templates in the browser</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/913</link>
    <description>&lt;pre&gt;Hello,

I'd like to compile my jade templates down to javascript using 'jade
--client' and then use them on the browser to render content (using
the runtime.js code). But I'd like to see some examples of how others
have done this.

Things I'd like to look at are how best to send the compiled templates
to the browser, how to run the functions on the browser. When they are
created all the functions have the name 'anonymous' - is this
something that I should change when packaging them up?

I feel like I'm missing something and that the lack of examples is
because it is easy.

Thank you,
  Edmund.

&lt;/pre&gt;</description>
    <dc:creator>Edmund von der Burg</dc:creator>
    <dc:date>2012-05-22T14:41:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/909">
    <title>Passing app to my routes.</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/909</link>
    <description>&lt;pre&gt;Hi All.

i want to use app in my routes/index.js file

here is what i am trying to do.

// app.js
--------------------------------------------------------------------------
app.get('/sound-cloud/auth/', routes.scAuth);

//  routes/index.js
-------------------------------------------------------------------------
/* Sound Cloud Auth View */
exports.scAuth = function(req, res, app){

    var authMessage = req.query["code"];
    if(authMessage == undefined){
        title = "void";
    }
    else{
     title = "ok"
     -------------here i want to set up a session------------
     app.use(express.cookieParser());
     app.use(express.session({ logInAuthCode: authMessage }));;
 
------------------------------------------------------------------------
   }
    res.render('index', { authMessage : authMessage });
};

Well of course i get an error cos i can not access the app from the
app.js file.  so how do i pass the app function through to my route.
or am i ment to use req, res instead.

thanks for all your help.

&lt;/pre&gt;</description>
    <dc:creator>asbo panda</dc:creator>
    <dc:date>2012-05-22T08:44:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/908">
    <title>Passing app to my routes.</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/908</link>
    <description>&lt;pre&gt;Hi All.

i want to use app in my routes/index.js file

here is what i am trying to do.

// app.js
--------------------------------------------------------------------------
app.get('/sound-cloud/auth/', routes.scAuth);

//  routes/index.js
-------------------------------------------------------------------------
/* Sound Cloud Auth View */
exports.scAuth = function(req, res, app){

    var authMessage = req.query["code"];
    if(authMessage == undefined){
        title = "void";
    }
    else{
       title = "ok"
  app.use(express.cookieParser());
  app.use(express.session({ secret: "me-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org" }));;
   }
    res.render('index', { authMessage : authMessage });
};

Well of course i get an error cos i can not access the app confing
from the app.js file.  so how do i pass the app function through to my
route.  or am i ment to use req, res  instead

&lt;/pre&gt;</description>
    <dc:creator>asbo panda</dc:creator>
    <dc:date>2012-05-22T08:40:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/903">
    <title>Need an idea</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/903</link>
    <description>&lt;pre&gt;Hello there!

I need some ideia to make this work , I need to generate a thumbnail
from an image inside the view, and return an unique id to insert into
the &amp;lt;img&amp;gt; tag.
In PHP I was using this in the view:

&amp;lt;img src="&amp;lt;?php resize($image, 'crop', 200, 200) ?&amp;gt;" alt="Hello world!" /&amp;gt;

This way, the RESIZE function would crop $image, cache it and return
the full URL for the cropper image, and a possible output would be
like:

&amp;lt;img src="/thumbs/hnd13ud01fd028f084ru" alt="Hello world!" /&amp;gt;

But I don't know how I can do this if I can't use async inside the views!

Any ideas?

--
Att,
Alan Hoffmeister

&lt;/pre&gt;</description>
    <dc:creator>Alan Hoffmeister</dc:creator>
    <dc:date>2012-05-21T23:58:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/899">
    <title>Cannot read property '0' of undefined</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/899</link>
    <description>&lt;pre&gt;Request handler thrown exception: TypeError: Cannot read property '0'
of undefined
    at next (node_modules/express/node_modules/connect/lib/http.js:145:18)
    at Server.&amp;lt;anonymous&amp;gt;
(node_modules/express/node_modules/connect/lib/http.js:216:3)


I getting this error on few of the requests, though the version is
express 2.5.2 i am trying to debug what caused the problem any
pointers?

&lt;/pre&gt;</description>
    <dc:creator>Prashanth</dc:creator>
    <dc:date>2012-05-21T06:35:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/896">
    <title>Bug: Express session problem with iframe in facebook canvas app with IE</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/896</link>
    <description>&lt;pre&gt;Hi

I have a canvas app on facebook and I'm having a problem getting the
session cookie in my request.
It seems like IE only have this problem. Other browsers work well.
I set P3P='HONK' header and tried to set the cookies manually using
response.cookie('connectID',  'some value'); and it worked! However,
in the below case, things don't work:

app.use(express.session({
    secret: 'gg4jklg54654k6j45kl45lgfkenj',
           // connect-memcached is used to store sessions
    store: app.sessionStore,
    fingerprint: function(){ return ''; },
    key: 'consid',
    cookie: {
    httpOnly: false,
               // I tried the true value as well
    secure: false,
    expires: new Date(Date.now() + (3600000*24*8))
  }}));

in m view function Im doing:

function(req, res) {
    // this line doesn't set and cookie with the name consid
    res.cookie('consid', req.session.id);

    // This successfully sets the cookie with the name  considddddd
    res.cookie('considddddd', req.session.id);

    res.render('home');
}

So that, any cookie has the name equals to the string used in express
session initialization code can't be set neither by the session
middleware nor manually. It works (manually only) when I change it as
in the second line.
BTW, I'm using https
I need the session middleware to be able to set the cookies as it does
with any browser!
This problem is in IE8,9 ONLY. And only in facebook canvas
application.


Thanks in advance
Thamas

&lt;/pre&gt;</description>
    <dc:creator>Thomas</dc:creator>
    <dc:date>2012-05-20T10:39:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/894">
    <title>Appending / Prepending some text to compiled Stylus code</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/894</link>
    <description>&lt;pre&gt;I'm using Stylus to process .styl files. Is there a way to prepend and 
append some text to the out of the file? ie. if the css that's generated is 
"body{color:red}" it'd like to get Express/Node to add a comment to the top 
of all the compiled .css files, ie. "/* My css file */ body{color:red}"

I'm using Stylus in expressing like so:

    app.use(stylus.middleware({

&lt;/pre&gt;</description>
    <dc:creator>Evgueni Naverniouk</dc:creator>
    <dc:date>2012-05-19T01:48:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/892">
    <title>app.error() migration for express 3.0</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/892</link>
    <description>&lt;pre&gt;Have been kicking the tires on 3.0 but haven't figured out the correct way 
to migrate the 2.x app.error() method.    Migration doc still has a tbd 
there 
(https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x). 
 Anybody got a quick sample?  Thanks.

&lt;/pre&gt;</description>
    <dc:creator>George Snelling</dc:creator>
    <dc:date>2012-05-18T22:22:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/888">
    <title>Callbacks within exported Routes</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/888</link>
    <description>&lt;pre&gt;**Disclaimer, I'm new to Async stuff **

I have a small API that I wrote that interacts with tumblr's v2 API.
The only problem I seem to have is with callbacks.  When I execute
these new functions from my API within the specific router
(router.js), the page is rendered before my functions have time to
return the callbacks.  I'm looking for a little advice,

A.  Should I pull my API functions out of the router and just make
ajax calls from the front end to my Functions?

Or, well there is no B, so any suggestions would be greatly
appreciated.

Thanks.

&lt;/pre&gt;</description>
    <dc:creator>Brent Lingle</dc:creator>
    <dc:date>2012-05-18T00:57:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/887">
    <title>Errata in Guide</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/887</link>
    <description>&lt;pre&gt;Hello all,
I'm reading through the guide at http://expressjs.com/guide.html, and 
noting a few errors. Thought I'd share a couple simple ones here:

   1. "We have seen app.get() a few times, however Express also exposes 
   other familiar HTTP verbs in the same manor" (Should be "...in the same 
   manner")
   2. "To do so we first need the methodOverride middleware, which should 
   be placed below bodyParser so that it can utilize it’s req.body 
   containing the form values." (S/b "...its req.body...")
   

&lt;/pre&gt;</description>
    <dc:creator>Aaron Yoshitake</dc:creator>
    <dc:date>2012-05-18T12:50:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/886">
    <title>expressjs infinite loop error</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/886</link>
    <description>&lt;pre&gt;Hello,

We are using the latest express version from the 2.x branch into
production, and have run into this issue a couple of times. I am still to
figure out what is triggering it, but it seems that express goes into an
infinite loop logging this error (stack trace below). CPU shoots to 100%
and the process dies eventually because we log stderr to disk and the disk
becomes full.

Previously I suspected this to an issue with our custom errorHandler, but
in this application, I am using the default errorHandler that comes with
connect.

Is this a known issue?

Thanks

Qasim

   at ServerResponse.setHeader
(/var/www/nodestore/releases/source/node_modules/express/node_modules/connect/lib/patch.js:62:20)
   at next
(/var/www/nodestore/releases/source/node_modules/express/node_modules/connect/lib/http.js:165:13)

    at pass
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:219:24)

    at nextRoute
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:209:7)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:274:11)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

Error: Can't set headers after they are sent.

    at ServerResponse.&amp;lt;anonymous&amp;gt; (http.js:523:11)

    at ServerResponse.setHeader
(/var/www/nodestore/releases/source/node_modules/express/node_modules/connect/lib/patch.js:62:20)

    at next
(/var/www/nodestore/releases/source/node_modules/express/node_modules/connect/lib/http.js:165:13)

    at pass
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:219:24)

    at nextRoute
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:209:7)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:274:11)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

Error: Can't set headers after they are sent.

    at ServerResponse.&amp;lt;anonymous&amp;gt; (http.js:523:11)

    at ServerResponse.setHeader
(/var/www/nodestore/releases/source/node_modules/express/node_modules/connect/lib/patch.js:62:20)

    at next
(/var/www/nodestore/releases/source/node_modules/express/node_modules/connect/lib/http.js:165:13)

    at pass
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:219:24)

    at nextRoute
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:209:7)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:274:11)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

    at callbacks
(/var/www/nodestore/releases/source/node_modules/express/lib/router/index.js:277:9)

&lt;/pre&gt;</description>
    <dc:creator>Qasim</dc:creator>
    <dc:date>2012-05-18T11:10:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/882">
    <title>Session Cookie is missing</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/882</link>
    <description>&lt;pre&gt;Hi

Our Node application is using express and socket.io. It works in all
browsers, except for IE. Under IE8, cookies seem to be totally missing
in socket handshake, there is no cookie header. Since the connect.sid
is also missing, socket.io authorization always fails.

A code fragment:

sio.set('authorization', function (data, callback) {
if (data.headers.cookie) {
                // Do something... This never happens, since cookies
are not there!

We don't use cross-domain scrips or anything fancy. These are the HTTP
headers we receive from IE8:

{ headers:
   { accept: '*/*',
     'accept-language': 'en-us',
     referer: 'https://192.168.176.1/',
     'accept-encoding': 'gzip, deflate',
     'user-agent': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; .NET4.0C)',
     host: '192.168.176.1',
     connection: 'Keep-Alive' }

We tried to install express chrome-frame, but it's the same.

We would like to support IE8 and 9. Is there a way to make IE to send
the cookies in the proper way?

Thanks in advance!

&lt;/pre&gt;</description>
    <dc:creator>Thomas</dc:creator>
    <dc:date>2012-05-17T10:41:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/877">
    <title>Partials using Collection</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/877</link>
    <description>&lt;pre&gt;Hi

I am having problems using partials with collection, it's not working.
This is my code:

app.js
  app.get('/test', routes.test);

routes/index.js
  var graphics_mod = [
   {divName: 'div1' ,title: 'Title 1'},
   {divName: 'div2' ,title: 'Title 2' },
   {divName: 'div3' ,title: 'Title 3'},
   {divName: 'div4' ,title: 'Title 4'}
  ];
  exports.test = function(req,res) {
    res.render('test', {graphics_var: graphics_mod})
  };

test.jade
  != partial('partials/graphics',{collection: graphics_var});

partials/graphics.jade
  div(id="graphics_var.divName") graphics_var.title

The best I could get was that four divs where created but no title or
div name, they show as undefined.
There's got to be something wrong, I just can't see it. I tried every
tutorial/video/helper I could find, but I am new here and out of
options..

Thank you in advance,
Lucia

&lt;/pre&gt;</description>
    <dc:creator>lutaeko</dc:creator>
    <dc:date>2012-05-14T16:02:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/876">
    <title>static middleware acting strangely after load</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/876</link>
    <description>&lt;pre&gt;hi all,

i have a strange problem with the static middleware for express 2.5.9, 
connect 1.8. here's my middleware config :

    RedisStore = require('connect-redis')(express)
    app.sessionStore = new RedisStore
    app.use express.staticCache()
    app.use(express.static(__dirname + '/../assets'))

    app.use express.cookieParser('xxxxxxxxxxxx')
    app.use express.bodyParser()
    app.use express.session( secret: 'xxxxxxxxxxxx', store: 
app.sessionStore, 
      fingerprint: ()-&amp;gt; return '', 
      maxAge: 600000000 )

    app.use express.methodOverride()
    app.passport = require('passport')
    app.use app.passport.initialize()
    app.use app.passport.session()

    app.use ensureAuthenticated()
    app.use express.staticCache()
    app.use(express.static(__dirname + '/../assets'))

    app.use(app.router)

  app.configure 'development', -&amp;gt; 
    console.log "Configuring development"
    app.use express.errorHandler { dumpExceptions: on, showStack: on }

now everything runs fine on startup. this is a single-page app that makes 
ajax calls to the server. now when the ajax calls build up after a while, 
the static middleware seem to stop responding to requests for the page. the 
browser just hangs indefinitely. only a restart will make it work again. 
now my ajax routes just run code that access mongodb using mongoose. the 
strange thing is the ajax routes still respond normally, only the static 
page doesn't get served again. any hints to point me in the right direction 
is appreciated.

&lt;/pre&gt;</description>
    <dc:creator>Chern Lai</dc:creator>
    <dc:date>2012-05-15T06:28:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/875">
    <title>Conditional route middleware</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/875</link>
    <description>&lt;pre&gt;I'd like to give one of my route middlewares the ability to decide which 
middlewares come after it based on some condition (in my case, whether a 
user is logged in). For example:

app.get('/',
    getSession,
    function(req, res, next) {
        if (req.session.user) {
            next([getUserOrders, getUserFavorites, renderUserHomepage]);
        }
        else {
            next([getNewProducts, getLatestDeals, renderHomepage]);
        }
    }
);

Obviously this doesn't work as expected... does anyone have any pointers 
how I should do this? I'm using Express 3.

&lt;/pre&gt;</description>
    <dc:creator>Nick Poulden</dc:creator>
    <dc:date>2012-05-15T22:18:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.javascript.express/874">
    <title>express.HTTPServer on v3.0.0</title>
    <link>http://comments.gmane.org/gmane.comp.lang.javascript.express/874</link>
    <description>&lt;pre&gt;Hi there,

Can anyone tell me what happened to express.HTTPServer on v3.0.0 of 
express? I can see that http.js and https.js files were removed. So what 
are the alternatives for when I want to do something like:
HTTPServer.prototype.doDomething = function() {...};

Thanks in advance
Rodrigo

&lt;/pre&gt;</description>
    <dc:creator>rguerreiro</dc:creator>
    <dc:date>2012-05-14T10:41:45</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.javascript.express">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.javascript.express</link>
  </textinput>
</rdf:RDF>

