Awesome Open Source
Awesome Open Source

Logo

SAN

A fast, portable, flexible JavaScript component framework.

NPM version License Build Status Coverage Status Issues

HomePage 网站

Download

NPM:

$ npm i san

CDN:

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

Dist Files Information

Quick Start

<!DOCTYPE html>
<html>

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

<body>
    <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>
</body>

</html>

Examples

Document

Companions

ChangeLog

Please visit document ChangeLog

License

San is MIT licensed.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (68,711
framework (1,096
component (552
frontend (501
mvvm (323

Find Open Source By Browsing 7,000 Topics Across 59 Categories