postmanerator icon indicating copy to clipboard operation
postmanerator copied to clipboard

Using `hu` theme gives an error

Open fawaztahir opened this issue 7 years ago • 5 comments

Used following command to download theme

postmanerator themes get hu

It was downloaded successfully. Running postmanerator themes list does show it in list. Tried to create documentation using following command.

postmanerator -collection=collection.json -environment=environment.json -theme=hu -output=output/index.html

Terminal throws following error:

Generating output... FAIL. template: index.tpl:92: function "findRequest" not defined

Same withmarkdown theme. Only default theme is working.

fawaztahir avatar Jun 30 '17 10:06 fawaztahir

Hello @fawazcb, I recently performed a few updates on the codebase that introduced some breaking changes. By now I only updated the default theme, but I will also update the markdown theme soon.

Regarding the hu theme, I suggest you address an issue on the maintainer repository :)

In the meantime, you can either:

  • stay with the default theme
  • use a previous version of Postmanerator
  • fork and adapt the hu or markdown themes (PR are welcome :))

aubm avatar Jun 30 '17 18:06 aubm

@aubm thanks for the details, I get the same error when not specifying any template:

postmanerator_darwin_386 -collection=./aiapi.json -output=./aiapi.html
Generating output... FAIL. template: index.tpl:76: function "findRequest" not defined

loretoparisi avatar May 31 '18 16:05 loretoparisi

same here, any fix?

GabrielDvt avatar Sep 20 '18 18:09 GabrielDvt

This is strange, maybe you are working with an outdated version of the default theme. Try re-running your command after running postmanerator themes delete default.

aubm avatar Nov 06 '18 11:11 aubm

Automatically checking for themes updates before generating a documentation might be an idea.

aubm avatar Nov 06 '18 11:11 aubm