Template question

44 views
Skip to first unread message

Tim Statler

unread,
Jan 19, 2012, 8:35:21 PM1/19/12
to JSDoc Users
I need to generate API docs for two products that can use the same
basic template (same look/feel), but need to have different image
logos, and different product "names", etc. I'd like to use a single
template and provide the image path/name and product name as
parameters to jsdoc, then add the right image or product name based on
that input.

I saw the --query parameter, but wasn't sure how to access its values
in the code.

thanks for any help.

Tim

Michael Mathews

unread,
Jan 21, 2012, 3:00:08 PM1/21/12
to tim.s...@gmail.com, JSDoc Users
In publish.js, if you passed in a query like "foo=bar+code", you can then read opts.foo to get "bar code".

Michael Mathews
mic...@gmail.com

> --
> You received this message because you are subscribed to the Google Groups "JSDoc Users" group.
> To post to this group, send email to jsdoc...@googlegroups.com.
> To unsubscribe from this group, send email to jsdoc-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jsdoc-users?hl=en.
>

Michael Mathews

unread,
Jan 21, 2012, 3:01:08 PM1/21/12
to tim.s...@gmail.com, JSDoc Users
erm, I mean you can read opts.query.foo.

Michael Mathews
mic...@gmail.com

Reply all
Reply to author
Forward
0 new messages