package
BEMJSON to HTML serializer
npm install bemjson-to-htmlGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
BEMJSON to HTML serializer
This is optimized part of jsot-bh for generation HTML from constructed BEMJSON.
Creates serializer object.
Options:
jsAttrScheme Boolean - If js, attribute with js params will be prefixed with return (default: js).jsAttrName String - Specifies name of attribute, that will contain jsParams (default: onclick).defaultTag String - Default tag name for block without tag property (default: div).Returns serialized HTML string.
trivial
4,133,717 op/s » bemjson-to-html
2,371,357 op/s » bh
simple
109,658 op/s » bemjson-to-html
78,604 op/s » bh
full
27,264 op/s » bemjson-to-html
23,367 op/s » bh
stringify
1,508,587 op/s » stringify (no escaping)
843,899 op/s » stringify (escaped with replace)
388,025 op/s » stringify (escaped)
312,156 op/s » bemjson-to-html
220,219 op/s » bhMIT (c) Vesvolod Strukchinsky