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

v1.18.x
Julian Lam 12 years ago
parent a01a5bbd64
commit 6df57c4a9b

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

@ -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']
);

Loading…
Cancel
Save