Permalink
Browse files

Minor fixes in articles, and render rss feed as xml.

  • Loading branch information...
1 parent 3371d65 commit 6a97e50af7af8f20062517a5db7b70e24cd68949 @creationix committed Apr 16, 2010
@@ -299,7 +299,7 @@ Clearly this blogging application is very rough and ready (there is no style to
* Security, authentication etc.
* An administrative interface
* Multiple blog-support.
- * Decent styling <g> (inc. themes)
+ * Decent styling &lt;g&gt; (inc. themes)
I hope this helps at least someone out there get to grips with how you might start actually writing web apps with [node][], [express][] and [mongoDB][].
@@ -49,14 +49,7 @@ I'll install the following libraries that are common to my projects:
You can install these however you please, but here is how I'd do it. The following code will clone the four libraries and install them into your local node library search path:
- mkdir ~/NodeLibs
- cd ~/NodeLibs
- git clone git://github.com/creationix/node-router.git
- git clone git://github.com/creationix/haml-js.git
- git clone git://github.com/creationix/proto.git
- mkdir ~/.node_libraries
- cd ~/.node_libraries
- ln -s ~/NodeLibs/*/lib/* ./
+<hello-node/install.sh>
That's it for now, this article was going to explain more, but it seems it got lost and fell through the cracks. Hopefully this will help you get started working with node.JS, it's a blast!.
@@ -0,0 +1,8 @@
+mkdir ~/NodeLibs
+cd ~/NodeLibs
+git clone git://github.com/creationix/node-router.git
+git clone git://github.com/creationix/haml-js.git
+git clone git://github.com/creationix/proto.git
+mkdir ~/.node_libraries
+cd ~/.node_libraries
+ln -s ~/NodeLibs/*/lib/* ./
@@ -18,7 +18,7 @@ This was nice. It was short. It worked but I wanted to procrastinate a little mo
The page count problems are basically a simple analysis of text with some accounting. Could I quickly write a program using node to do something so mundane? Yes and it was surprisingly straight forward. I fired up node-repl and started playing around before typing up this:
-<node-for-everyday-things/word-count.js*>
+<node-for-everyday-things/word-count.js>
`pagecount` reports the plain text version of this essay is 636 words or 1.82 pages including the source code examples. It's a little longer than my shell script. On the other hand it is easier to read and with a little modification I can embed it as a web service or put it into a web page.
@@ -1,6 +1,7 @@
-%rss(version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/")
+%rss(version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom")
%channel
%title How To Node
+ %atom:link(href="http://howtonode.org/feed.xml" rel="self" type="application/rss+xml")
%link http://howtonode.org
%description How To Node is a blog featuring projects and tutorials relating to the Node.js project.
%pubDate&= formatRFC822Date(new Date())
@@ -14,4 +15,4 @@
%pubDate&= formatRFC822Date(article.date)
%guid(isPermaLink="true")&= "http://howtonode.org/" + article.name
%description&= markdownEncode(article.markdown)
- %author&= article.author && article.author.name
+ %author&= article.author && (article.author.email + " (" + article.author.name + ")")

0 comments on commit 6a97e50

Please sign in to comment.