xcgs123 / san

San is a flexible JavaScript component framework

Home Page:https://baidu.github.io/san/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://baidu.github.io/san/

License:MIT License


Languages

Language:JavaScript 92.1%Language:Smarty 4.3%Language:HTML 2.7%Language:CSS 0.5%Language:TypeScript 0.4%