Message from discussion
Noob Question
Received: by 10.223.122.19 with SMTP id j19mr585012far.8.1278587336633;
Thu, 08 Jul 2010 04:08:56 -0700 (PDT)
X-BeenThere: express-js@googlegroups.com
Received: by 10.223.101.25 with SMTP id a25ls1261781fao.3.p; Thu, 08 Jul 2010
04:08:56 -0700 (PDT)
Received: by 10.223.107.17 with SMTP id z17mr571563fao.12.1278587335977;
Thu, 08 Jul 2010 04:08:55 -0700 (PDT)
Received: by 10.223.107.17 with SMTP id z17mr571562fao.12.1278587335913;
Thu, 08 Jul 2010 04:08:55 -0700 (PDT)
Return-Path: <sam.mill...@gmail.com>
Received: from mail-bw0-f51.google.com (mail-bw0-f51.google.com [209.85.214.51])
by gmr-mx.google.com with ESMTP id o12si2285700fal.0.2010.07.08.04.08.54;
Thu, 08 Jul 2010 04:08:54 -0700 (PDT)
Received-SPF: pass (google.com: domain of sam.mill...@gmail.com designates 209.85.214.51 as permitted sender) client-ip=209.85.214.51;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of sam.mill...@gmail.com designates 209.85.214.51 as permitted sender) smtp.mail=sam.mill...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by bwz4 with SMTP id 4so481752bwz.24
for <express-js@googlegroups.com>; Thu, 08 Jul 2010 04:08:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:sender:received
:in-reply-to:references:date:x-google-sender-auth:message-id:subject
:from:to:content-type;
bh=JMe/1QmXbQjfAkBJj4jt8pw12DXX4Afud+m2T3U2PiQ=;
b=nXHWsVhTAkeKtzWJ9BYSkO0E1QQ74yuWE6fVt1SSRop+aBHipkmQ2Bh54L65XB75Zn
7KH5Xg/XkoZ192aD1PLk60dAWi+PelTdTPqVXesGHNqW3osGcPg5auRMAk7p0qVXwuo1
wYdmZPMLt7VjKHp71CPOf4sA6ZXnhsBmQ/5NE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:content-type;
b=PrxKwLX1PxWBt3slzlnBz/7S1FTPZwUf1UMIe+G20PPn6j/KAkq8BLTpZ6BHjMTYa0
7uDK9SRGfI3xYlSPqnxnM3rHoFZP4LidGHz6AHoYQTjCRt4ADZ1uHlLg/yesb9ITBKYj
aOeWQNvBLciXcpjxXLbtxR3DVZsSomnWHaKFU=
MIME-Version: 1.0
Received: by 10.204.34.133 with SMTP id l5mr6175133bkd.180.1278587334263; Thu,
08 Jul 2010 04:08:54 -0700 (PDT)
Sender: sam.mill...@gmail.com
Received: by 10.204.174.198 with HTTP; Thu, 8 Jul 2010 04:08:54 -0700 (PDT)
In-Reply-To: <AANLkTin4elJMjmZEi-oykIC8tjj1-1yQ7xDDEVlIY...@mail.gmail.com>
References: <0d27ce4f-72b3-4f6e-82b2-899e3d633...@y4g2000yqy.googlegroups.com>
<AANLkTinDZbi9kXeAupFGZTm3NWhZDl3t5pBv55RDV...@mail.gmail.com>
<50243445-d84b-47bf-8233-5cc1dccbb...@g19g2000yqc.googlegroups.com>
<AANLkTikSe-gSkb8txjE9qePvuN5JI4lQm_BePXyoN...@mail.gmail.com>
<BA452F52-54DB-4284-952B-51792EF74...@dennisbloete.de>
<2fb6343f-c00d-4b57-8075-38bd341a8...@x21g2000yqa.googlegroups.com>
<AANLkTikDIKesQ-iaZjMM3zr-Dv2VKxixPNnTwQRR9...@mail.gmail.com>
<A7553ABD-0C0F-4CFF-98C7-60910DA87...@dennisbloete.de>
<AANLkTiled_uB5p3eeZXCgHoO6Xr-L44kH4Co924lM...@mail.gmail.com>
<AANLkTinJ5PJkNpeFgLeie9sLy-oHr-mI7SVe7WQxp...@mail.gmail.com>
<8cccf6d1-e6bc-4ddb-969e-f227ef8bb...@t10g2000yqg.googlegroups.com>
<AANLkTim9uUXSqYwp3kGrVkh3qzrU_3ekpDlxOdtjA...@mail.gmail.com>
<AANLkTin4elJMjmZEi-oykIC8tjj1-1yQ7xDDEVlIY...@mail.gmail.com>
Date: Thu, 8 Jul 2010 12:08:54 +0100
Message-ID: <AANLkTimb9RE7j-eCYO5DsrEUnanaUEm8T0jRL2sGF...@mail.gmail.com>
Subject: Re: Noob Question
From: Sam Millman <smill...@nhbs.co.uk>
To: express-js@googlegroups.com
Content-Type: multipart/alternative; boundary=0003255575fadf82e4048ade4ff0
--0003255575fadf82e4048ade4ff0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Ah yes that does it thanks :)
On 8 July 2010 12:07, Ciaran <ciar...@gmail.com> wrote:
> inside a route 'this' refers to the request object, the request object
> contains a property 'response' so:
>
> so this.response.setCookie() etc.
>
> Does that help?
>
> -cj.
>
>
> On Thu, Jul 8, 2010 at 12:05 PM, Sam Millman <sam.mill...@gmail.com>
> wrote:
> > And again,
> >
> > how can I get an object of the response?
> >
> > I can do this.whatever for request but if I want to do
> response.setCookies()
> > what would I do for that?
> >
> > I do notice in the examples that this context can also be used to set t=
he
> > content type within reponse headers? can this context be used to access
> > response methods like response.setCookies?
> >
> > On 8 July 2010 09:09, Sammaye <sam.mill...@gmail.com> wrote:
> >>
> >> Yet another question :)
> >>
> >> Does SSJS or specifically node have strong inheritance.
> >>
> >> I have two files:
> >>
> >> app.js
> >> session.js
> >>
> >> Within my app.js I include a mongo db class but I use it within
> >> session.js.
> >>
> >> Both are required into app.js like:
> >>
> >> var mongo =3D require("mongo"),
> >> session =3D require("session");
> >>
> >> Can SSJS detect that session should have access to the same namespace
> >> as app.js or do I need to make the mongo object again within the
> >> session class?
> >>
> >> On Jul 7, 3:57 pm, Josef Salyer <josef.sal...@gmail.com> wrote:
> >> > awesome!! Looking forward to the new version!
> >> >
> >> > On Wed, Jul 7, 2010 at 8:33 AM, vision media [ Tj Holowaychuk ]
> >> >
> >> > <t...@vision-media.ca> wrote:
> >> > > Hopefully late next week. The site / man pages will be generated
> from
> >> > > markdown in the master branch so it will
> >> > > be easier for contributors as well :)
> >> >
> >> > > On Wed, Jul 7, 2010 at 7:12 AM, Dennis Bl=F6te <m...@dennisbloete.=
de>
> >> > > wrote:
> >> >
> >> > >> @TJ When do you plan to release 1.0? As I said I'd like to help
> with
> >> > >> the
> >> > >> documentation, in this case I'll wait for 1.0 and see what's
> missing
> >> > >> when
> >> > >> you publish the new site.
> >> >
> >> > >> Am 07.07.2010 um 16:07 schrieb vision media [ Tj Holowaychuk ]:
> >> >
> >> > >> > 1.0 will have better docs :) I am making sure if this lol more =
/
> >> > >> > better
> >> > >> > docs. I will be removing the old
> >> > >> > site and replacing it, along with removing the wiki pages, and
> >> > >> > clearing
> >> > >> > out all the issues
> >> >
> >> > >> > On Wed, Jul 7, 2010 at 6:41 AM, Sammaye <sam.mill...@gmail.com>
> >> > >> > wrote:
> >> > >> > That is awesome. I'm getting the jist of the framework now and =
I
> >> > >> > had
> >> > >> > to learn thrift for cassandra so it's not that bad. Just in cas=
e
> >> > >> > you
> >> > >> > havent installed thrift before it's documentation is install
> >> > >> > instructions (which didn't work for me so I had install it
> >> > >> > manually).....and that's it!!!
> >> >
> >> > >> > Though don't put the code as white text on dark background and
> very
> >> > >> > wordy like node.js, their documentation hurts my eyes and
> fatigues
> >> > >> > me
> >> > >> > easily :(.
> >> >
> >> > >> > On Jul 7, 2:26 pm, Dennis Bl=F6te <m...@dennisbloete.de> wrote:
> >> > >> > > Hello everyone,
> >> >
> >> > >> > > > There isn't more documentation :(
> >> >
> >> > >> > > I'm currently working on a project that uses some of the
> >> > >> > > undocumented
> >> > >> > > features/plugins of express (i.e. flash, cookie, session,
> hooks)
> >> > >> > > and I am
> >> > >> > > looking forward to add documentation for these when I got the
> >> > >> > > project out
> >> > >> > > the door, because I had a hard time finding out how to get
> things
> >> > >> > > running by
> >> > >> > > looking through the express codebase (though it wasn't
> impossible
> >> > >> > > ;)).
> >> >
> >> > >> > > I hope I can publish some code examples rather sooner than
> later
> >> > >> > > (maybe by the end of the next week).
> >> >
> >> > >> > > Best regards,
> >> > >> > > Dennis
> >> >
> >> > >> > > Am 07.07.2010 um 14:53 schrieb Aaron Heckmann:
> >> >
> >> > >> > > > There isn't more documentation :( , just the code itself
> which
> >> > >> > > > is
> >> > >> > > > documented well. The project also contains specs and exampl=
es
> >> > >> > > > between
> >> > >> > > > which should provide a big help too.
> >> >
> >> > >> > > > On 7/7/10, Sammaye <sam.mill...@gmail.com> wrote:
> >> > >> > > >> Ah yes I understand now.
> >> >
> >> > >> > > >> I was worried about duplicate urls originally but after
> >> > >> > > >> reading
> >> > >> > > >> that
> >> > >> > > >> page it seems as though I've got more options than I
> >> > >> > > >> originally
> >> > >> > > >> thought with URLs :)
> >> >
> >> > >> > > >> Basically I am used to defining seperate functions in i.e.
> >> > >> > > >> server
> >> > >> > > >> side
> >> > >> > > >> with normal url paths decoded from url rewrites (so /post/=
1
> >> > >> > > >> becomes
> >> > >> > > >> post.php?id=3D1) and I was worried about trying to decode =
my
> >> > >> > > >> urls so
> >> > >> > > >> I
> >> > >> > > >> didn't get ambiquity within my app but everything seems fi=
ne
> >> > >> > > >> after
> >> > >> > > >> ready that page now.
> >> >
> >> > >> > > >> Do you know if theres a clear outline of all functions (ap=
i
> >> > >> > > >> documentation)? Both the wiki and the main website do not
> >> > >> > > >> outline
> >> > >> > > >> every function though they do hold some very interesting
> >> > >> > > >> information.
> >> >
> >> > >> > > >> Thanks,
> >> >
> >> > >> > > >> On Jul 7, 12:40 pm, Aaron Heckmann <
> aaron.heckm...@gmail.com>
> >> > >> > > >> wrote:
> >> > >> > > >>>http://wiki.github.com/visionmedia/express/routing
> >> >
> >> > >> > > >>> <http://wiki.github.com/visionmedia/express/routing>Not
> sure
> >> > >> > > >>> I
> >> > >> > > >>> understand.
> >> > >> > > >>> What do you mean by " but how can I use proper gets
> >> > >> > > >>> within a url that I can uniquely identify?"
> >> >
> >> > >> > > >>> On Wed, Jul 7, 2010 at 7:24 AM, Sammaye
> >> > >> > > >>> <sam.mill...@gmail.com>
> >> > >> > > >>> wrote:
> >> > >> > > >>>> Hi Everyone,
> >> >
> >> > >> > > >>>> I'm an absolute noob to both node.js and express however
> >> > >> > > >>>> have
> >> > >> > > >>>> been
> >> > >> > > >>>> getting to crips and have formed a bit of a kool app
> however
> >> > >> > > >>>> I do
> >> > >> > > >>>> have
> >> > >> > > >>>> one little problem.
> >> >
> >> > >> > > >>>> I am not using my node.js server directly I am accessing
> it
> >> > >> > > >>>> through
> >> > >> > > >>>> JQuery on a Nginx server and I access it like so
> >> > >> > > >>>> "129.129.129.393:8124/?username=3Dsam&someotherpoo=3Dthi=
s".
> >> >
> >> > >> > > >>>> It is with complicated urls like this that I start to ge=
t
> a
> >> > >> > > >>>> problem. I
> >> > >> > > >>>> can do "/sam/this" but then I get problems with definein=
g
> >> > >> > > >>>> the url
> >> > >> > > >>>> within the code and how express gets the url.
> >> >
> >> > >> > > >>>> My current understanding is:
> >> >
> >> > >> > > >>>> get(/:user/:something,function()
> >> >
> >> > >> > > >>>> would get me /sam/this out of the url but how can I use
> >> > >> > > >>>> proper
> >> > >> > > >>>> gets
> >> > >> > > >>>> within a url that I can uniquely identify?
> >> >
> >> > >> > > >>>> I mean what happens if I have another url that needs to =
be
> >> > >> > > >>>> /post/this
> >> > >> > > >>>> and would have the same structure within the express cod=
e
> as
> >> > >> > > >>>> the
> >> > >> > > >>>> /sam/
> >> > >> > > >>>> this url?
> >> >
> >> > >> > > >>>> Really what im looking for is a way to put a top level
> >> > >> > > >>>> router
> >> > >> > > >>>> that can
> >> > >> > > >>>> grab the url in it's raw form and operate on it to clean
> it
> >> > >> > > >>>> up
> >> > >> > > >>>> and
> >> > >> > > >>>> shove it to it's correct path. I am however unsure if th=
at
> >> > >> > > >>>> can be
> >> > >> > > >>>> done
> >> > >> > > >>>> and I have to use /sam/this style urls. I know this soun=
ds
> >> > >> > > >>>> kinda
> >> > >> > > >>>> weird
> >> > >> > > >>>> and probably I ain't explained it well but hopefully
> you'll
> >> > >> > > >>>> understand
> >> > >> > > >>>> what I'm trying to do.
> >> >
> >> > >> > > >>>> Also is there a api documentation for express anywhere a=
ll
> I
> >> > >> > > >>>> see
> >> > >> > > >>>> if
> >> > >> > > >>>> basic stuff I don't see a method by method/function
> >> > >> > > >>>> documentation
> >> > >> > > >>>> of
> >> > >> > > >>>> the framework?
> >> >
> >> > >> > > >>>> thanks,
> >> >
> >> > >> > > >>>> --
> >> > >> > > >>>> You received this message because you are subscribed to
> the
> >> > >> > > >>>> Google
> >> > >> > > >>>> Groups
> >> > >> > > >>>> "Express" group.
> >> > >> > > >>>> To post to this group, send email to
> >> > >> > > >>>> express-js@googlegroups.com.
> >> > >> > > >>>> To unsubscribe from this group, send email to
> >> >
> >> > >> > > >>>>
> >> > >> > > >>>> express-js+unsubscribe@googlegroups.com<express-js%2Buns=
ubscribe@googlegroups.com>
> <express-js%2Bunsubscribe@googlegroups.com<express-js%252Bunsubscribe@goo=
glegroups.com>
> >
> >> > >> > > >>>> .
> >> > >> > > >>>> For more options, visit this group at
> >> > >> > > >>>>http://groups.google.com/group/express-js?hl=3Den.
> >> >
> >> > >> > > >>> --
> >> > >> > > >>> Aaronhttp://clickdummy.net
> >> >
> >> > >> > > >> --
> >> > >> > > >> You received this message because you are subscribed to th=
e
> >> > >> > > >> Google
> >> > >> > > >> Groups
> >> > >> > > >> "Express" group.
> >> > >> > > >> To post to this group, send email to
> >> > >> > > >> express-js@googlegroups.com.
> >> > >> > > >> To unsubscribe from this group, send email to
> >> > >> > > >> express-js+unsubscribe@googlegroups.com<express-js%2Bunsub=
scribe@googlegroups.com>
> .
> >> > >> > > >> For more options, visit this group at
> >> > >> > > >>http://groups.google.com/group/express-js?hl=3Den.
> >> >
> >> > >> > > > --
> >> > >> > > > Aaron
> >> > >> > > >http://clickdummy.net
> >> >
> >> > >> > > > --
> >> > >> > > > You received this message because you are subscribed to the
> >> > >> > > > Google
> >> > >> > > > Groups "Express" group.
> >> > >> > > > To post to this group, send email to
> >> > >> > > > express-js@googlegroups.com.
> >> > >> > > > To unsubscribe from this group, send email to
> >> > >> > > > express-js+unsubscribe@googlegroups.com<express-js%2Bunsubs=
cribe@googlegroups.com>
> .
> >> > >> > > > For more options, visit this group
> >> > >> > > > athttp://groups.google.com/group/express-js?hl=3Den.
> >> >
> >> > >> > --
> >> > >> > You received this message because you are subscribed to the
> Google
> >> > >> > Groups "Express" group.
> >> > >> > To post to this group, send email to express...@googlegroups.co=
m
> .
> >> > >> > To unsubscribe from this group, send email to
> >> > >> > express-js+unsubscribe@googlegroups.com<express-js%2Bunsubscrib=
e@googlegroups.com>
> .
> >> > >> > For more options, visit this group at
> >> > >> >http://groups.google.com/group/express-js?hl=3Den.
> >> >
> >> > >> > --
> >> > >> > Tj Holowaychuk
> >> > >> > Vision Media
> >> > >> > President & Creative Lead
> >> >
> >> > >> > --
> >> > >> > You received this message because you are subscribed to the
> Google
> >> > >> > Groups "Express" group.
> >> > >> > To post to this group, send email to express...@googlegroups.co=
m
> .
> >> > >> > To unsubscribe from this group, send email to
> >> > >> > express-js+unsubscribe@googlegroups.com<express-js%2Bunsubscrib=
e@googlegroups.com>
> .
> >> > >> > For more options, visit this group at
> >> > >> >http://groups.google.com/group/express-js?hl=3Den.
> >> >
> >> > >> --
> >> > >> You received this message because you are subscribed to the Googl=
e
> >> > >> Groups
> >> > >> "Express" group.
> >> > >> To post to this group, send email to express-js@googlegroups.com.
> >> > >> To unsubscribe from this group, send email to
> >> > >> express-js+unsubscribe@googlegroups.com<express-js%2Bunsubscribe@=
googlegroups.com>
> .
> >> > >> For more options, visit this group at
> >> > >>http://groups.google.com/group/express-js?hl=3Den.
> >> >
> >> > > --
> >> > > Tj Holowaychuk
> >> > > Vision Media
> >> > > President & Creative Lead
> >> >
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> > > Groups
> >> > > "Express" group.
> >> > > To post to this group, send email to express-js@googlegroups.com.
> >> > > To unsubscribe from this group, send email to
> >> > > express-js+unsubscribe@googlegroups.com<express-js%2Bunsubscribe@g=
ooglegroups.com>
> .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/express-js?hl=3Den.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Express" group.
> >> To post to this group, send email to express-js@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> express-js+unsubscribe@googlegroups.com<express-js%2Bunsubscribe@googl=
egroups.com>
> .
> >> For more options, visit this group at
> >> http://groups.google.com/group/express-js?hl=3Den.
> >>
> >
> >
> >
> > --
> > Bow Chicka Bow Wow
> >
> > --
> > You received this message because you are subscribed to the Google Grou=
ps
> > "Express" group.
> > To post to this group, send email to express-js@googlegroups.com.
> > To unsubscribe from this group, send email to
> > express-js+unsubscribe@googlegroups.com<express-js%2Bunsubscribe@google=
groups.com>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/express-js?hl=3Den.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Express" group.
> To post to this group, send email to express-js@googlegroups.com.
> To unsubscribe from this group, send email to
> express-js+unsubscribe@googlegroups.com<express-js%2Bunsubscribe@googlegr=
oups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/express-js?hl=3Den.
>
>
--=20
Bow Chicka Bow Wow
--0003255575fadf82e4048ade4ff0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Ah yes that does it thanks :)<br><br><div class=3D"gmail_quote">On 8 July 2=
010 12:07, Ciaran <span dir=3D"ltr"><<a href=3D"mailto:ciar...@gmail.com=
">ciar...@gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quo=
te" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204=
, 204); padding-left: 1ex;">
inside a route 'this' refers to the request object, the request obj=
ect<br>
contains a property 'response' so:<br>
<br>
so this.response.setCookie() etc.<br>
<br>
Does that help?<br>
<br>
-cj.<br>
<div><div></div><div class=3D"h5"><br>
<br>
On Thu, Jul 8, 2010 at 12:05 PM, Sam Millman <<a href=3D"mailto:sam.mill=
m...@gmail.com">sam.mill...@gmail.com</a>> wrote:<br>
> And again,<br>
><br>
> how can I get an object of the response?<br>
><br>
> I can do this.whatever for request but if I want to do response.setCoo=
kies()<br>
> what would I do for that?<br>
><br>
> I do notice in the examples that this context can also be used to set =
the<br>
> content type within reponse headers? can this context be used to acces=
s<br>
> response methods like response.setCookies?<br>
><br>
> On 8 July 2010 09:09, Sammaye <<a href=3D"mailto:sam.millman@gmail.=
com">sam.mill...@gmail.com</a>> wrote:<br>
>><br>
>> Yet another question :)<br>
>><br>
>> Does SSJS or specifically node have strong inheritance.<br>
>><br>
>> I have two files:<br>
>><br>
>> app.js<br>
>> session.js<br>
>><br>
>> Within my app.js I include a mongo db class but I use it within<br=
>
>> session.js.<br>
>><br>
>> Both are required into app.js like:<br>
>><br>
>> var mongo =3D require("mongo"),<br>
>> =A0 =A0 session =3D require("session");<br>
>><br>
>> Can SSJS detect that session should have access to the same namesp=
ace<br>
>> as app.js or do I need to make the mongo object again within the<b=
r>
>> session class?<br>
>><br>
>> On Jul 7, 3:57=A0pm, Josef Salyer <<a href=3D"mailto:josef.sal.=
....@gmail.com">josef.sal...@gmail.com</a>> wrote:<br>
>> > awesome!! =A0Looking forward to the new version!<br>
>> ><br>
>> > On Wed, Jul 7, 2010 at 8:33 AM, vision media [ Tj Holowaychuk=
]<br>
>> ><br>
>> > <<a href=3D"mailto:t...@vision-media.ca">t...@vision-media=
.ca</a>> wrote:<br>
>> > > Hopefully late next week. The site / man pages will be g=
enerated from<br>
>> > > markdown in the master branch so it will<br>
>> > > be easier for contributors as well :)<br>
>> ><br>
>> > > On Wed, Jul 7, 2010 at 7:12 AM, Dennis Bl=F6te <<a hr=
ef=3D"mailto:m...@dennisbloete.de">m...@dennisbloete.de</a>><br>
>> > > wrote:<br>
>> ><br>
>> > >> @TJ When do you plan to release 1.0? As I said I'=
;d like to help with<br>
>> > >> the<br>
>> > >> documentation, in this case I'll wait for 1.0 an=
d see what's missing<br>
>> > >> when<br>
>> > >> you publish the new site.<br>
>> ><br>
>> > >> Am 07.07.2010 um 16:07 schrieb vision media [ Tj Hol=
owaychuk ]:<br>
>> ><br>
>> > >> > 1.0 will have better docs :) I am making sure i=
f this lol more /<br>
>> > >> > better<br>
>> > >> > docs. I will be removing the old<br>
>> > >> > site and replacing it, along with removing the =
wiki pages, and<br>
>> > >> > clearing<br>
>> > >> > out all the issues<br>
>> ><br>
>> > >> > On Wed, Jul 7, 2010 at 6:41 AM, Sammaye <<a =
href=3D"mailto:sam.mill...@gmail.com">sam.mill...@gmail.com</a>><br>
>> > >> > wrote:<br>
>> > >> > That is awesome. I'm getting the jist of th=
e framework now and I<br>
>> > >> > had<br>
>> > >> > to learn thrift for cassandra so it's not t=
hat bad. Just in case<br>
>> > >> > you<br>
>> > >> > havent installed thrift before it's documen=
tation is install<br>
>> > >> > instructions (which didn't work for me so I=
had install it<br>
>> > >> > manually).....and that's it!!!<br>
>> ><br>
>> > >> > Though don't put the code as white text on =
dark background and very<br>
>> > >> > wordy like node.js, their documentation hurts m=
y eyes and fatigues<br>
>> > >> > me<br>
>> > >> > easily :(.<br>
>> ><br>
>> > >> > On Jul 7, 2:26 pm, Dennis Bl=F6te <<a href=
=3D"mailto:m...@dennisbloete.de">m...@dennisbloete.de</a>> wrote:<br>
>> > >> > > Hello everyone,<br>
>> ><br>
>> > >> > > > There isn't more documentation :(=
<br>
>> ><br>
>> > >> > > I'm currently working on a project tha=
t uses some of the<br>
>> > >> > > undocumented<br>
>> > >> > > features/plugins of express (i.e. flash, c=
ookie, session, hooks)<br>
>> > >> > > and I am<br>
>> > >> > > looking forward to add documentation for t=
hese when I got the<br>
>> > >> > > project out<br>
>> > >> > > the door, because I had a hard time findin=
g out how to get things<br>
>> > >> > > running by<br>
>> > >> > > looking through the express codebase (thou=
gh it wasn't impossible<br>
>> > >> > > ;)).<br>
>> ><br>
>> > >> > > I hope I can publish some code examples ra=
ther sooner than later<br>
>> > >> > > (maybe by the end of the next week).<br>
>> ><br>
>> > >> > > =A0 Best regards,<br>
>> > >> > > =A0 Dennis<br>
>> ><br>
>> > >> > > Am 07.07.2010 um 14:53 schrieb Aaron Heckm=
ann:<br>
>> ><br>
>> > >> > > > There isn't more documentation :(=
, just the code itself which<br>
>> > >> > > > is<br>
>> > >> > > > documented well. The project also con=
tains specs and examples<br>
>> > >> > > > between<br>
>> > >> > > > which should provide a big help too.<=
br>
>> ><br>
>> > >> > > > On 7/7/10, Sammaye <<a href=3D"mai=
lto:sam.mill...@gmail.com">sam.mill...@gmail.com</a>> wrote:<br>
>> > >> > > >> Ah yes I understand now.<br>
>> ><br>
>> > >> > > >> I was worried about duplicate url=
s originally but after<br>
>> > >> > > >> reading<br>
>> > >> > > >> that<br>
>> > >> > > >> page it seems as though I've =
got more options than I<br>
>> > >> > > >> originally<br>
>> > >> > > >> thought with URLs :)<br>
>> ><br>
>> > >> > > >> Basically I am used to defining s=
eperate functions in i.e.<br>
>> > >> > > >> server<br>
>> > >> > > >> side<br>
>> > >> > > >> with normal url paths decoded fro=
m url rewrites (so /post/1<br>
>> > >> > > >> becomes<br>
>> > >> > > >> post.php?id=3D1) and I was worrie=
d about trying to decode my<br>
>> > >> > > >> urls so<br>
>> > >> > > >> I<br>
>> > >> > > >> didn't get ambiquity within m=
y app but everything seems fine<br>
>> > >> > > >> after<br>
>> > >> > > >> ready that page now.<br>
>> ><br>
>> > >> > > >> Do you know if theres a clear out=
line of all functions (api<br>
>> > >> > > >> documentation)? Both the wiki and=
the main website do not<br>
>> > >> > > >> outline<br>
>> > >> > > >> every function though they do hol=
d some very interesting<br>
>> > >> > > >> information.<br>
>> ><br>
>> > >> > > >> Thanks,<br>
>> ><br>
>> > >> > > >> On Jul 7, 12:40 pm, Aaron Heckman=
n <<a href=3D"mailto:aaron.heckm...@gmail.com">aaron.heckm...@gmail.com<=
/a>><br>
>> > >> > > >> wrote:<br>
>> > >> > > >>><a href=3D"http://wiki.github.=
com/visionmedia/express/routing" target=3D"_blank">http://wiki.github.com/v=
isionmedia/express/routing</a><br>
>> ><br>
>> > >> > > >>> <<a href=3D"http://wiki.gi=
thub.com/visionmedia/express/routing" target=3D"_blank">http://wiki.github.=
com/visionmedia/express/routing</a>>Not sure<br>
>> > >> > > >>> I<br>
>> > >> > > >>> understand.<br>
>> > >> > > >>> What do you mean by " bu=
t how can I use proper gets<br>
>> > >> > > >>> within a url that I can uniqu=
ely identify?"<br>
>> ><br>
>> > >> > > >>> On Wed, Jul 7, 2010 at 7:24 A=
M, Sammaye<br>
>> > >> > > >>> <<a href=3D"mailto:sam.mil=
l...@gmail.com">sam.mill...@gmail.com</a>><br>
>> > >> > > >>> wrote:<br>
>> > >> > > >>>> Hi Everyone,<br>
>> ><br>
>> > >> > > >>>> I'm an absolute noob =
to both node.js and express however<br>
>> > >> > > >>>> have<br>
>> > >> > > >>>> been<br>
>> > >> > > >>>> getting to crips and have=
formed a bit of a kool app however<br>
>> > >> > > >>>> I do<br>
>> > >> > > >>>> have<br>
>> > >> > > >>>> one little problem.<br>
>> ><br>
>> > >> > > >>>> I am not using my node.js=
server directly I am accessing it<br>
>> > >> > > >>>> through<br>
>> > >> > > >>>> JQuery on a Nginx server =
and I access it like so<br>
>> > >> > > >>>> "129.129.129.393:812=
4/?username=3Dsam&someotherpoo=3Dthis".<br>
>> ><br>
>> > >> > > >>>> It is with complicated ur=
ls like this that I start to get a<br>
>> > >> > > >>>> problem. I<br>
>> > >> > > >>>> can do "/sam/this&qu=
ot; but then I get problems with defineing<br>
>> > >> > > >>>> the url<br>
>> > >> > > >>>> within the code and how e=
xpress gets the url.<br>
>> ><br>
>> > >> > > >>>> My current understanding =
is:<br>
>> ><br>
>> > >> > > >>>> get(/:user/:something,fun=
ction()<br>
>> ><br>
>> > >> > > >>>> would get me /sam/this ou=
t of the url but how can I use<br>
>> > >> > > >>>> proper<br>
>> > >> > > >>>> gets<br>
>> > >> > > >>>> within a url that I can u=
niquely identify?<br>
>> ><br>
>> > >> > > >>>> I mean what happens if I =
have another url that needs to be<br>
>> > >> > > >>>> /post/this<br>
>> > >> > > >>>> and would have the same s=
tructure within the express code as<br>
>> > >> > > >>>> the<br>
>> > >> > > >>>> /sam/<br>
>> > >> > > >>>> this url?<br>
>> ><br>
>> > >> > > >>>> Really what im looking fo=
r is a way to put a top level<br>
>> > >> > > >>>> router<br>
>> > >> > > >>>> that can<br>
>> > >> > > >>>> grab the url in it's =
raw form and operate on it to clean it<br>
>> > >> > > >>>> up<br>
>> > >> > > >>>> and<br>
>> > >> > > >>>> shove it to it's corr=
ect path. I am however unsure if that<br>
>> > >> > > >>>> can be<br>
>> > >> > > >>>> done<br>
>> > >> > > >>>> and I have to use /sam/th=
is style urls. I know this sounds<br>
>> > >> > > >>>> kinda<br>
>> > >> > > >>>> weird<br>
>> > >> > > >>>> and probably I ain't =
explained it well but hopefully you'll<br>
>> > >> > > >>>> understand<br>
>> > >> > > >>>> what I'm trying to do=
.<br>
>> ><br>
>> > >> > > >>>> Also is there a api docum=
entation for express anywhere all I<br>
>> > >> > > >>>> see<br>
>> > >> > > >>>> if<br>
>> > >> > > >>>> basic stuff I don't s=
ee a method by method/function<br>
>> > >> > > >>>> documentation<br>
>> > >> > > >>>> of<br>
>> > >> > > >>>> the framework?<br>
>> ><br>
>> > >> > > >>>> thanks,<br>
>> ><br>
>> > >> > > >>>> --<br>
>> > >> > > >>>> You received this message=
because you are subscribed to the<br>
>> > >> > > >>>> Google<br>
>> > >> > > >>>> Groups<br>
>> > >> > > >>>> "Express" group=
.<br>
>> > >> > > >>>> To post to this group, se=
nd email to<br>
>> > >> > > >>>> <a href=3D"mailto:express=
-js@googlegroups.com">express-js@googlegroups.com</a>.<br>
>> > >> > > >>>> To unsubscribe from this =
group, send email to<br>
>> ><br>
>> > >> > > >>>><br>
>> > >> > > >>>> <a href=3D"mailto:express=
-js%2Bunsubscribe@googlegroups.com">express-js+unsubscribe@googlegroups.com=
</a><<a href=3D"mailto:express-js%252Bunsubscribe@googlegroups.com">expr=
ess-js%2Bunsubscribe@googlegroups.com</a>><br>
>> > >> > > >>>> .<br>
>> > >> > > >>>> For more options, visit t=
his group at<br>
>> > >> > > >>>><a href=3D"http://groups.g=
oogle.com/group/express-js?hl=3Den" target=3D"_blank">http://groups.google.=
com/group/express-js?hl=3Den</a>.<br>
>> ><br>
>> > >> > > >>> --<br>
>> > >> > > >>> Aaronhttp://<a href=3D"http:/=
/clickdummy.net" target=3D"_blank">clickdummy.net</a><br>
>> ><br>
>> > >> > > >> --<br>
>> > >> > > >> You received this message because=
you are subscribed to the<br>
>> > >> > > >> Google<br>
>> > >> > > >> Groups<br>
>> > >> > > >> "Express" group.<br>
>> > >> > > >> To post to this group, send email=
to<br>
>> > >> > > >> <a href=3D"mailto:express-js@goog=
legroups.com">express-js@googlegroups.com</a>.<br>
>> > >> > > >> To unsubscribe from this group, s=
end email to<br>
>> > >> > > >> <a href=3D"mailto:express-js%2Bun=
subscribe@googlegroups.com">express-js+unsubscribe@googlegroups.com</a>.<br=
>
>> > >> > > >> For more options, visit this grou=
p at<br>
>> > >> > > >><a href=3D"http://groups.google.co=
m/group/express-js?hl=3Den" target=3D"_blank">http://groups.google.com/grou=
p/express-js?hl=3Den</a>.<br>
>> ><br>
>> > >> > > > --<br>
>> > >> > > > Aaron<br>
>> > >> > > ><a href=3D"http://clickdummy.net" targ=
et=3D"_blank">http://clickdummy.net</a><br>
>> ><br>
>> > >> > > > --<br>
>> > >> > > > You received this message because you=
are subscribed to the<br>
>> > >> > > > Google<br>
>> > >> > > > Groups "Express" group.<br>
>> > >> > > > To post to this group, send email to<=
br>
>> > >> > > > <a href=3D"mailto:express-js@googlegr=
oups.com">express-js@googlegroups.com</a>.<br>
>> > >> > > > To unsubscribe from this group, send =
email to<br>
>> > >> > > > <a href=3D"mailto:express-js%2Bunsubs=
cribe@googlegroups.com">express-js+unsubscribe@googlegroups.com</a>.<br>
>> > >> > > > For more options, visit this group<br=
>
>> > >> > > > athttp://<a href=3D"http://groups.goo=
gle.com/group/express-js?hl=3Den" target=3D"_blank">groups.google.com/group=
/express-js?hl=3Den</a>.<br>
>> ><br>
>> > >> > --<br>
>> > >> > You received this message because you are subsc=
ribed to the Google<br>
>> > >> > Groups "Express" group.<br>
>> > >> > To post to this group, send email to <a href=3D=
"mailto:express-js@googlegroups.com">express-js@googlegroups.com</a>.<br>
>> > >> > To unsubscribe from this group, send email to<b=
r>
>> > >> > <a href=3D"mailto:express-js%2Bunsubscribe@goog=
legroups.com">express-js+unsubscribe@googlegroups.com</a>.<br>
>> > >> > For more options, visit this group at<br>
>> > >> ><a href=3D"http://groups.google.com/group/expres=
s-js?hl=3Den" target=3D"_blank">http://groups.google.com/group/express-js?h=
l=3Den</a>.<br>
>> ><br>
>> > >> > --<br>
>> > >> > Tj Holowaychuk<br>
>> > >> > Vision Media<br>
>> > >> > President & Creative Lead<br>
>> ><br>
>> > >> > --<br>
>> > >> > You received this message because you are subsc=
ribed to the Google<br>
>> > >> > Groups "Express" group.<br>
>> > >> > To post to this group, send email to <a href=3D=
"mailto:express-js@googlegroups.com">express-js@googlegroups.com</a>.<br>
>> > >> > To unsubscribe from this group, send email to<b=
r>
>> > >> > <a href=3D"mailto:express-js%2Bunsubscribe@goog=
legroups.com">express-js+unsubscribe@googlegroups.com</a>.<br>
>> > >> > For more options, visit this group at<br>
>> > >> ><a href=3D"http://groups.google.com/group/expres=
s-js?hl=3Den" target=3D"_blank">http://groups.google.com/group/express-js?h=
l=3Den</a>.<br>
>> ><br>
>> > >> --<br>
>> > >> You received this message because you are subscribed=
to the Google<br>
>> > >> Groups<br>
>> > >> "Express" group.<br>
>> > >> To post to this group, send email to <a href=3D"mail=
to:express-js@googlegroups.com">express-js@googlegroups.com</a>.<br>
>> > >> To unsubscribe from this group, send email to<br>
>> > >> <a href=3D"mailto:express-js%2Bunsubscribe@googlegro=
ups.com">express-js+unsubscribe@googlegroups.com</a>.<br>
>> > >> For more options, visit this group at<br>
>> > >><a href=3D"http://groups.google.com/group/express-js?=
hl=3Den" target=3D"_blank">http://groups.google.com/group/express-js?hl=3De=
n</a>.<br>
>> ><br>
>> > > --<br>
>> > > Tj Holowaychuk<br>
>> > > Vision Media<br>
>> > > President & Creative Lead<br>
>> ><br>
>> > > --<br>
>> > > You received this message because you are subscribed to =
the Google<br>
>> > > Groups<br>
>> > > "Express" group.<br>
>> > > To post to this group, send email to <a href=3D"mailto:e=
xpress-js@googlegroups.com">express-js@googlegroups.com</a>.<br>
>> > > To unsubscribe from this group, send email to<br>
>> > > <a href=3D"mailto:express-js%2Bunsubscribe@googlegroups.=
com">express-js+unsubscribe@googlegroups.com</a>.<br>
>> > > For more options, visit this group at<br>
>> > ><a href=3D"http://groups.google.com/group/express-js?hl=
=3Den" target=3D"_blank">http://groups.google.com/group/express-js?hl=3Den<=
/a>.<br>
>><br>
>> --<br>
>> You received this message because you are subscribed to the Google=
Groups<br>
>> "Express" group.<br>
>> To post to this group, send email to <a href=3D"mailto:express-js@=
googlegroups.com">express-js@googlegroups.com</a>.<br>
>> To unsubscribe from this group, send email to<br>
>> <a href=3D"mailto:express-js%2Bunsubscribe@googlegroups.com">expre=
ss-js+unsubscribe@googlegroups.com</a>.<br>
>> For more options, visit this group at<br>
>> <a href=3D"http://groups.google.com/group/express-js?hl=3Den" targ=
et=3D"_blank">http://groups.google.com/group/express-js?hl=3Den</a>.<br>
>><br>
><br>
><br>
><br>
> --<br>
> Bow Chicka Bow Wow<br>
><br>
> --<br>
> You received this message because you are subscribed to the Google Gro=
ups<br>
> "Express" group.<br>
> To post to this group, send email to <a href=3D"mailto:express-js@goog=
legroups.com">express-js@googlegroups.com</a>.<br>
> To unsubscribe from this group, send email to<br>
> <a href=3D"mailto:express-js%2Bunsubscribe@googlegroups.com">express-j=
s+unsubscribe@googlegroups.com</a>.<br>
> For more options, visit this group at<br>
> <a href=3D"http://groups.google.com/group/express-js?hl=3Den" target=
=3D"_blank">http://groups.google.com/group/express-js?hl=3Den</a>.<br>
><br>
<br>
--<br>
You received this message because you are subscribed to the Google Groups &=
quot;Express" group.<br>
To post to this group, send email to <a href=3D"mailto:express-js@googlegro=
ups.com">express-js@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:express-js%=
2Bunsubscribe@googlegroups.com">express-js+unsubscribe@googlegroups.com</a>=
.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/express-js?hl=3Den" target=3D"_blank">http://groups.google.com/group/e=
xpress-js?hl=3Den</a>.<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>Bow Chicka =
Bow Wow<br>
--0003255575fadf82e4048ade4ff0--