committing the broken template parsing for andrew to see (webserver.js, line 121. Uncomment the commented out object, or substitute in "posts")

This commit is contained in:
Julian Lam
2013-06-11 13:51:25 -04:00
parent a01a5bbd64
commit 6df57c4a9b
2 changed files with 3 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
<ul>
<!-- BEGIN posts -->
<li>
Foo: {posts.foo}
</li>
<!-- END posts -->
</ul>

View File

@@ -115,9 +115,10 @@ var express = require('express'),
var topic_url = tid + (req.params.slug ? '/' + req.params.slug : '');
topics.get_posts_noscript(tid, ((req.user) ? req.user.uid : 0), function(posts) {
console.log(posts);
res.send(
build_header() +
'\n\t<noscript>\n\t\t' + templates['noscript/topic'] + '\n\t</noscript>' +
'\n\t<noscript>\n\t\t' + templates['noscript/topic'].parse(/*{ posts: [{ foo: 'bar' }]}*/) + '\n\t</noscript>' +
'\n\t<script>templates.ready(function(){ajaxify.go("topic/' + topic_url + '");});</script>' +
templates['footer']
);