Permalink
Browse files

Documented charkey and attrkey options.

Changed defaults in version 0.2, fixes issue #58.
  • Loading branch information...
1 parent 3cff80d commit 4a4f411efe51bc424dfc56f9f9f51d79988e00f9 @Leonidas-from-XIV committed Oct 1, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -111,6 +111,10 @@ Apart from the default settings, there is a number of options that can be
specified for the parser. Options are specified by ``new Parser({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 `#`.
* `explicitCharkey` (default: `false`)
* `trim` (default: `false`): Trim the whitespace at the beginning and end of
text nodes.

0 comments on commit 4a4f411

Please sign in to comment.