babelute-html-lexicon
v0.2.3
Published
Babelute HTML5 DSL Lexicon. All you need to write HTML or describe DOM in pure js.
Downloads
19
Maintainers
Readme
babelute-html-lexicon
HTML DSL for Babelute. So simple, so powerful.
- One of the lightest modern pure js html lib avaiable (around 4Ko gzipped with dependencies)
- One of the fastest DOM diffing engine (fastest than Mithril in chrome and firefox - around 10 times faster than React)
- Natural Web Components definition and usage.
- Natural and clean React-like one-way data-binding (or no-binding-at-all)
- Natural and easy DSL encapsulation/extension.
- Simple and easy to understand algorithm. No more esoteric interpretation or optimisation trick. You are the master.
- Diffing algo that will show excellent behaviour when scalling. More components you have, more optimisation happend.
- Absolutly non-obstrusive (but need immutables). Play really well with other libs (redux, immutables, jquery, ...).
- Perfectly isomorphic. (work in progress)
- Ultra fast server side string rendering.
And of course as a Babelute DSL, it could be used along with ALL other Babelute's DSL. Specifically, it will be used heavily as HTML translation target for any Babelute sentences that need HTML representation.
This is the Lexicon for HTML words. It should be used in conjonction with an output engine :
It could be extended for any other rendering engine.
Genesis
Please refer to designing a DSL to understand how this could be constructed and use.
There is much more things in this library than in the examples.
More doc coming soon.
Licence
The MIT License
Copyright 2016-2017 (c) Gilles Coomans [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.