Skip to content
/ san Public
forked from baidu/san

A fast, portable, flexible JavaScript component framework

License

Notifications You must be signed in to change notification settings

zedeng/san

 
 

Repository files navigation

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/san@latest"></script>

Dist Files Information

Quick Start

<!DOCTYPE html>
<html>

<head>
    <title>Quick Start</title>
    <script src="https://unpkg.com/san@latest"></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.

About

A fast, portable, flexible JavaScript component framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 92.3%
  • Smarty 3.6%
  • HTML 3.3%
  • Other 0.8%