Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.46 KB

README.md

File metadata and controls

50 lines (36 loc) · 1.46 KB

Build Status Version License

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

Note

This library cannot be used without Babel and plugin enabling Decorators (babel-decorators-legacy)

Examples

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

Build

Once you have repository cloned, building a copy of Strudel is really easy

npm install
npm run build

Contributing

Coming soon