Skip to content
forked from baidu/san

A fast, portable, flexible JavaScript component framework

License

Notifications You must be signed in to change notification settings

changyuqing/san

This branch is 692 commits behind baidu/san:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 21, 2020
7bce97f · Jan 21, 2020
Jan 30, 2019
Dec 26, 2019
Nov 27, 2019
Dec 30, 2019
Jan 13, 2020
Dec 27, 2019
Dec 27, 2019
Jan 20, 2020
May 2, 2016
Dec 27, 2019
Sep 26, 2016
Jan 31, 2019
Jan 15, 2020
Sep 26, 2016
Jan 6, 2020
Jan 30, 2019
Dec 27, 2019
Jan 17, 2020

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%