Pull requests

#2 Declined
Repository
Deleted repository
Branch
allow-output-customisation (6af295f58bca)
Repository
mryall
Branch
master

Allows to customise the output of Botoss.

Author
  1. Pierre-Etienne Poirot
Reviewers
Description

Botoss currently generates pretty-printed HTML with an indentation of 4 spaces (per level of tag hierarchy), which is not ideal for production use cases (where the HTML passed to Botoss can be fairly large and contains many levels of nested tags).

Instead this adds a configuration object so that the caller can customise the generated HTML with the following options:

  • whether to pretty-print the generated HTML,
  • if pretty-printed, how many spaces to use to indent each new level of nested tags,
  • and which charset to use to encode the generated HTML.
  • Learn about pull requests

Comments (0)