BetaJS-Dynamics is a dynamic DOM templating engine.
You can use the library in the browser and compile it as well.
<script src="betajs/dist/betajs.min.js"></script>
<script src="betajs-browser/dist/betajs-browser.min.js"></script>
<script src="betajs-dynamics/dist/betajs-dynamics.min.js"></script>
git clone https://github.com/betajs/betajs-dynamics.git
npm install
grunt
The Javascript Controller:
dynamic = new BetaJS.Dynamics.Dynamic({
element: document.querySelector("some_element"),
initial : {
attrs : {
some_attribute : "This is some Text",
some_boolean : true
}
}
});
The HTML Element:
<some_element ba-if="{{some_boolean}}">{{some_attribute}}</some_element>
Will evaluate to
<some_element>This is some Text</some_element>
Resource | URL |
---|---|
Homepage | https://betajs.com |
Git | git://github.com/betajs/betajs-dynamics.git |
Repository | https://github.com/betajs/betajs-dynamics |
Blog | https://blog.betajs.com |
https://twitter.com/thebetajs | |
Gitter | https://gitter.im/betajs/betajs-dynamics |
Target | Versions |
---|---|
Firefox | 6 - Latest |
Chrome | 18 - Latest |
Safari | 4 - Latest |
Opera | 12 - Latest |
Internet Explorer | 8 - Latest |
Edge | 12 - Latest |
Yandex | Latest |
iOS | 3.0 - Latest |
Android | 4.4 - Latest |
Resource | URL |
---|---|
betajs-dynamics.js | http://cdn.rawgit.com/betajs/betajs-dynamics/master/dist/betajs-dynamics.js |
betajs-dynamics.min.js | http://cdn.rawgit.com/betajs/betajs-dynamics/master/dist/betajs-dynamics.min.js |
betajs-dynamics-noscoped.js | http://cdn.rawgit.com/betajs/betajs-dynamics/master/dist/betajs-dynamics-noscoped.js |
betajs-dynamics-noscoped.min.js | http://cdn.rawgit.com/betajs/betajs-dynamics/master/dist/betajs-dynamics-noscoped.min.js |
Resource | URL |
---|---|
Test Suite | Run |
Name | URL |
---|---|
betajs | Open |
betajs-browser | Open |
Name | URL |
---|---|
betajs-scoped | Open |
betajs-shims | Open |
- Victor Lingenthal
- Oliver Friedmann
Apache-2.0
- Ziggeo
- Browserstack