You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
undefined:55
((__t=( filename ))==null?'':__t)+
^
ReferenceError: filename is not defined
at eval (eval at <anonymous> (/usr/lib/node_modules/jsdoc/node_modules/underscore/underscore.js:1262:16), <anonymous>:55:9)
at template (/usr/lib/node_modules/jsdoc/node_modules/underscore/underscore.js:1270:21)
at exports.Template.partial (/usr/lib/node_modules/jsdoc/lib/jsdoc/template.js:62:29)
at exports.Template.render (/usr/lib/node_modules/jsdoc/lib/jsdoc/template.js:81:24)
.....
Well, then you've been using the -u switch, eh? Problem is that the template in tmpl/layout.tmpl uses the unbound javascript variable filename, which then, per underscore.js's template documentation, requires an object passed in with a property named filename as well.
You're doing this well for the other kinds of renderings, but not for the tutorials.
I fixed the problem locally by defining a property filename with value filename (the parameter for the function generateTutorial) on the tutorialData object, in publish.js around line 490.
The text was updated successfully, but these errors were encountered:
nbargnesi
added a commit
to nbargnesi/jaguarjs-jsdoc
that referenced
this issue
Feb 26, 2015
Ever stumbled over something like this:
Well, then you've been using the
-u
switch, eh? Problem is that the template intmpl/layout.tmpl
uses the unbound javascript variablefilename
, which then, per underscore.js's template documentation, requires an object passed in with a property namedfilename
as well.You're doing this well for the other kinds of renderings, but not for the tutorials.
I fixed the problem locally by defining a property
filename
with valuefilename
(the parameter for the functiongenerateTutorial
) on thetutorialData
object, inpublish.js
around line 490.The text was updated successfully, but these errors were encountered: