Skip to content
/ san Public
forked from baidu/san

San is a flexible JavaScript component framework

License

Notifications You must be signed in to change notification settings

zhuwenxuan/san

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 14, 2018
bf85bc7 · Aug 14, 2018
Jun 25, 2018
Mar 22, 2018
Aug 14, 2018
Jul 9, 2018
Aug 14, 2018
Aug 13, 2018
Mar 21, 2018
Mar 6, 2018
May 2, 2016
Sep 1, 2017
Sep 26, 2016
Jun 11, 2018
Aug 13, 2018
Sep 26, 2016
Jun 27, 2018
Aug 13, 2018

Repository files navigation

Logo

SAN

A Flexible JavaScript Component Framework. HomePage

NPM version Build Status Downloads License Issues

Download

NPM:

$ npm i san

CDN:

<script src="https://unpkg.com/san@latest"></script>

Dist Files Infomation

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>

Document

Companions

  • san-devtool - Chrome DevTool extension
  • san-router - SPA Router
  • san-store - Application States Management
  • san-update - Immutable Data Update
  • san-factory - Component register and instantiation
  • san-mui - Material Design Components Library
  • san-xui - A Set of SAN UI Components that widely used on Baidu Cloud Console
  • drei - VSCode exntension for SAN

ChangeLog

Please visit document ChangeLog

License

San is MIT licensed.

About

San is a flexible JavaScript component framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 92.1%
  • Smarty 4.3%
  • HTML 2.7%
  • Other 0.9%