私はCouchDB 1.0.1を実行しているcouchdbの初心者です。
私は非常に基本的な問題を抱えています。リストにレンダリングする口ひげセクションを取得できません。これは、例からハードコードされたデータを含む私のリストです。
function(head, req) {
start({
"headers": {
"Content-Type": "text/html"
}
});
var mustache = require("lib/mustache");
var view = {name: "Joe's shopping card",items: ["bananas", "apples"]};
var template = "{{name}}: <ul> {{#items}}<li>{{.}}</li>{{/items}} </ul>";
return mustache.to_html(template,view);
出力:
Joe's shopping card: <ul> <li></li><li></li></ul>
助けてください!!!
ありがとう / ジェフ