Skip to content
/ doz Public
forked from dozjs/doz

A JavaScript framework for building UI, almost like writing in VanillaJS. For modern browser.

License

Notifications You must be signed in to change notification settings

pLembo90/doz

 
 

Repository files navigation







A JavaScript framework for building UI, almost like writing in VanillaJS. For modern browser.



Documentation | Demo

Tiny size: 9KB (gzip)

Why another framework?

In the web there are many frameworks that do all the same things. But a lot of them are complex, we need to know a lot of directives and they make confusion for example with the context of "this", some introduce other syntaxes like JSX. All you need is HTML, CSS and Doz.

Doz uses ES6 proxy to observe changes.

Installation

$ npm install --save doz

Start with doz-cli

$ npm install -g doz-cli
$ doz app my-app
$ cd my-app
$ npm run start

Example

<div id="app"></div>

Component definition

Doz.component('button-counter', {
    props: {
        counter: 0
    },
    template() {
        return `
            <div>
                <button onclick="this.props.counter  ">
                    ${this.props.title} ${this.props.counter}
                </button>
            </div>
        `
    }
});

Make an app with the component defined above

new Doz({
    root: '#app',
    template: `
        <button-counter title="Click me!"></button-counter>
    `
});

CDN unpkg

<script src="https://unpkg.com/doz/dist/doz.min.js"></script>

Changelog

You can view the changelog here

License

DOZ is open-sourced software licensed under the MIT license

Author

Fabio Ricali

About

A JavaScript framework for building UI, almost like writing in VanillaJS. For modern browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 61.0%
  • HTML 38.9%
  • Other 0.1%