mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-20 22:43:01 +01:00
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:
@@ -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']
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user