Skip to content

object has no method tmpl #5

@dynamodan

Description

@dynamodan

I think the code is out of date for the latest version of jqtpl. I'm getting an error that the tmpl method doesn't exist. I think the correct one is tmpl.render(), but that doesn't work either. (try it, you'll see what I mean)

Here's a paste:

http://localhost:8080/
[debug] mongo://localhost:27017: Connected
[debug] mongo://localhost:27017: Initialized as primary
[info] mongo://localhost:27017: Connected to primary
[debug] Finished scanning... primary? mongo://localhost:27017

/home/dynamo/Documents/GIT_js_mvc_cms/app/controllers/page.js:57
var content = tmpl.tmpl(view, {
^
TypeError: Object # has no method 'tmpl'
at exports.get (/home/dynamo/Documents/GIT_js_mvc_cms/app/controllers/page.js:57:24)
at MongolianCursor.next (/home/dynamo/Documents/GIT_js_mvc_cms/node_modules/mongolian/lib/cursor.js:167:9)
at MongolianCursor.next (/home/dynamo/Documents/GIT_js_mvc_cms/node_modules/mongolian/lib/cursor.js:171:18)
at /home/dynamo/Documents/GIT_js_mvc_cms/node_modules/mongolian/lib/util.js:19:13
at /home/dynamo/Documents/GIT_js_mvc_cms/node_modules/mongolian/lib/cursor.js:125:9
at /home/dynamo/Documents/GIT_js_mvc_cms/node_modules/mongolian/lib/util.js:19:13
at Connection. (/home/dynamo/Documents/GIT_js_mvc_cms/node_modules/mongolian/lib/server.js:233:17)
at Connection.EventEmitter.emit (events.js:96:17)
at Socket. (/home/dynamo/Documents/GIT_js_mvc_cms/node_modules/mongolian/lib/connection.js:61:22)
at Socket.EventEmitter.emit (events.js:96:17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions