betajs-dynamics
v0.0.150
Published
BetaJS-Dynamics is a dynamic DOM templating engine.
Downloads
702
Readme
betajs-dynamics 0.0.150
BetaJS-Dynamics is a dynamic DOM templating engine.
Getting Started
You can use the library in the browser and compile it as well.
Browser
<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>
Compile
git clone https://github.com/betajs/betajs-dynamics.git
npm install
grunt
Basic Usage
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>
Links
| 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 | | Twitter | https://twitter.com/thebetajs | | Gitter | https://gitter.im/betajs/betajs-dynamics |
Compatability
| 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 |
CDN
| 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 |
Unit Tests
| Resource | URL | | :----- | -------: | | Test Suite | Run |
Dependencies
| Name | URL | | :----- | -------: | | betajs | Open | | betajs-browser | Open |
Weak Dependencies
| Name | URL | | :----- | -------: | | betajs-scoped | Open | | betajs-shims | Open |
Main Contributors
- Victor Lingenthal
- Oliver Friedmann
License
Apache-2.0
Sponsors
- Ziggeo
- Browserstack