san

by baidu

baidu /san

A fast, portable, flexible JavaScript component framework

4.3K Stars 498 Forks Last release: 22 days ago (3.9.4) MIT License 2.2K Commits 124 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Logo

SAN

A fast, portable, flexible JavaScript component framework.

NPM version License Build Status Coverage Status Issues

HomePage 网站

Download

NPM:

$ npm i san

CDN:


Dist Files Information

Quick Start

<title>Quick Start</title>
<script src="https://unpkg.com/[email protected]"></script>



<script>
    const MyApp = san.defineComponent({
        template: `
            <div>
                <input type="text" value="{=name=}">
                <p>Hello {{name}}!</p>
            </div>
        `
    });

    let myApp = new MyApp({
        data: {
            name: 'San'
        }
    });
    myApp.attach(document.body);
</script>

Examples

Document

Companions

ChangeLog

Please visit document ChangeLog

License

San is MIT licensed.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.