Strudel (@) is a JavaScript library for decorating web pages with functionality using ES7 decorators.
- Decorators: Boilerplate is reduced to minimum thanks to many useful decorators
- Component-Based: Strudel is component oriented so every dom element is related with ES6 class
- Lightweight and extensible: Mix and match with all your favourite frameworks
This library cannot be used without Babel and plugin enabling Decorators (babel-decorators-legacy
)
Here is simplest component to get you started:
@Component('.greeter')
class Greeter {
init() {
this.element.html('Hello world!');
}
}
and HTML:
<div class="greeter"></div>
This example will render "Hello world" on a page
Once you have repository cloned, building a copy of Strudel is really easy
npm install
npm run build
Coming soon