Monkberry Standalone
Standalone build of Monkberry for use in browsers.
CDN
https://cdn.jsdelivr.net/monkberry-standalone/latest/monkberry.min.js
Usage
Include it to your page.
Define template with text/monkberry
.
And you now can get access to component
template.
var view = Monkberry;
Mark node with data-monkberry
attribule and it will be replaced with real view of Monkberry.
This is {{ name || 'noname' }}.
To get view instanse call Monkberry.getView
method.
var view = Monkberry; view;
Also with monkberry-standalone you can compile source code to JavaScript code.
var code = '<div>{{ text }}</div>';var source = Monkberry;