Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
136 lines (126 sloc) 3.8 KB
#main
.article
:if article.version
%a.sha-version{ href: "/#{article.version}/#{article.name}" } Static Version
%h1
%a{href: "/" + article.name}&= article.title
:if article.node && article.node.match(/^v?0\.([0-9])\./)
%p.old-node-warning
HEADS UP! This article was written for an older version of node. 
More up-to-date information may be available elsewhere.
= markdownEncode(article.markdown)
%hr{style:"clear:both"}
#disqus_thread.body
:script
var disqus_url = "//howtonode.org/#{article.name}";
%script(src="//disqus.com/forums/howtonodeorg/embed.js" type="text/javascript")
%a.view-thread(href="//disqus.com/forums/howtonodeorg/?url=ref")
View the discussion thread.
%a.dsq-brlink(href="//disqus.com")
blog comments powered by
%span.logo-disqus
Disqus
:script
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&amp;';
}
}
document.write('<script charset="utf-8" type="text/javascript" src="//disqus.com/forums/howtonodeorg/get_num_replies.js' + query + '"></' + 'script>');
})();
#sidebar
.aside.author
%h4 About the Author
%img.headshot{src: gravitar(author.email) }
%dl
%dt Name:
%dd&= author.name
:if author.github
%dl
%dt Github:
%dd= github(author.github)
:if author.bitbucket
%dl
%dt BitBucket:
%dd= bitbucket(author.bitbucket)
:if author.twitter
%dl
%dt Twitter:
%dd= twitter(author.twitter)
:if author.location
%dl
%dt Location:
%dd&= author.location
:if author.homepage
%dl
%dt Links:
%dd
%a{href: author.homepage} Homepage
.aside
%h4
About this Article
%a.twitter-share-button{href:"//twitter.com/share",data-count:"horizontal",data-via:"creationix"}
Tweet
%script{src:"//platform.twitter.com/widgets.js"}
:if article.date
%dl{title: article.date}
%dt
Date Released:
%dd
&= formatDate(article.date, "%A, %B %e, %Y")
:if article.lastUpdated
%dl{title: article.lastUpdated}
%dt
Last Updated:
%dd
&= formatDate(article.lastUpdated, "%A, %B %e, %Y")
:if article.node
%dl
%dt
Node Version:
%dd
%a{ href: "//github.com/joyent/node/tree/" + article.node }
node #{article.node}
:if article.dependencies
%dl
%dt
Dependency Versions:
%dd
%ul
:each dependency in article.dependencies
%li
%a{ href: "//github.com/creationix/haml-js/tree/8ea2df3a90ff488ed253d5872e0f4a387f393e5d" }
haml-js v0.2.2
:if article.uniqueSnippets
%dl
%dt
Code Samples:
%dd
%ul
:each base, snippet in article.uniqueSnippets
%li
%a{ href: snippet.filename}
&= base
%dl
%dt
Revisions:
%dd
%ul
:each version, stat in article.log
%li{title: stat.message}
%a{ href: "/#{version}/#{article.name}" }
&= new Date(stat.date).toUTCString()
:if article.related && article.related.length > 0
.bubble
%h4
Other Articles by this Author
%ul
:each related in article.related
%li
%a{href: "/" + related.name}&=related.title
:if related.node
%span.versiontag&= related.node
.bubble= markdownEncode(description)