Skip to content

Commit

Permalink
Merge pull request #467 from jcsahnwaldt/patch-1
Browse files Browse the repository at this point in the history
README.md: describe builder options attrkey and charkey
  • Loading branch information
Leonidas-from-XIV authored Jun 15, 2018
2 parents cec9dc0 + c1d49d8 commit 66bcb29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ Options for the `Builder` class
These options are specified by ``new Builder({optionName: value})``.
Possible options are:

* `attrkey` (default: `$`): Prefix that is used to access the attributes.
Version 0.1 default was `@`.
* `charkey` (default: `_`): Prefix that is used to access the character
content. Version 0.1 default was `#`.
* `rootName` (default `root` or the root key name): root element name to be used in case
`explicitRoot` is `false` or to override the root element name.
* `renderOpts` (default `{ 'pretty': true, 'indent': ' ', 'newline': '\n' }`):
Expand Down

0 comments on commit 66bcb29

Please sign in to comment.