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

Lambert-Min/san

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 29, 2021
9e4950f · Nov 29, 2021
Nov 4, 2020
Aug 4, 2021
Oct 20, 2020
Nov 25, 2021
Nov 29, 2021
Nov 29, 2021
Dec 27, 2019
Nov 24, 2021
May 2, 2016
Aug 19, 2021
Sep 26, 2016
Nov 29, 2021
Sep 26, 2016
Oct 8, 2021
Jan 30, 2019
Sep 18, 2021
Nov 29, 2021

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.0%
  • Smarty 3.6%
  • TypeScript 2.2%
  • HTML 1.4%
  • CSS 0.8%