Comparing version 3.4.1 to 3.5.0
@@ -78,2 +78,4 @@ 'use strict'; | ||
var _entity = require('./transform/entity'); | ||
var _graph = require('./graph'); | ||
@@ -91,3 +93,3 @@ | ||
this.parsers = { 'default': _monkberryParser.parser }; | ||
this.transforms = { whitespace: _whitespace.whitespace }; | ||
this.transforms = { whitespace: _whitespace.whitespace, entity: _entity.entity }; | ||
this.globals = []; | ||
@@ -94,0 +96,0 @@ } |
{ | ||
"name": "monkberry", | ||
"version": "3.4.1", | ||
"version": "3.5.0", | ||
"description": "JavaScript DOM Template Engine", | ||
@@ -38,3 +38,3 @@ "bin": "bin/monkberry", | ||
"commander": "^2.9.0", | ||
"monkberry-parser": "^3.4.0", | ||
"monkberry-parser": "^3.5.0", | ||
"source-map": "^0.5.3", | ||
@@ -41,0 +41,0 @@ "asciitree": "^1.0.2" |
@@ -55,5 +55,5 @@ # Monkberry - JavaScript template engine | ||
- [view.remove([force])](#viewremoveforce) | ||
- [view.getElementById(id)](#viewgetelementbyidid) | ||
- [view.querySelector(query)](#viewqueryselectorquery) | ||
- [Tests](#tests) | ||
- [Plugins](#plugins) | ||
- [Benchmarks](#benchmarks) | ||
@@ -619,2 +619,4 @@ | ||
If you template contains more then one nodes on first level, `querySelector` will look other all subtrees. Array of all top level nodes can be accessed by `view.nodes[]` array. | ||
> Note what querySelector can not work with template which have if/for/custom node on first level. | ||
@@ -645,2 +647,6 @@ > ```twig | ||
## Plugins | ||
* Atom Text Editor: [language-monkberry](https://atom.io/packages/language-monkberry) | ||
## Benchmarks | ||
@@ -647,0 +653,0 @@ |
102035
32
2323
656
Updatedmonkberry-parser@^3.5.0