# ref-lit **Repository Path**: HGJing/ref-lit ## Basic Information - **Project Name**: ref-lit - **Description**: Lightweight progressive JavaScript rendering framework - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-11-05 - **Last Updated**: 2024-04-18 ## Categories & Tags **Categories**: javascript-toolkits **Tags**: None ## README # Ref-Lit JS > Lightweight progressive JavaScript rendering framework > 当前是英文文档,中文文档请点击这里切换:[中文文档地址](./readme-zh_CN.md) ## Features - Based on [ref.js](https://github.com/canguser/ref) & [lit-html.js](https://github.com/Polymer/lit-html) - Using [Web Component API](https://developer.mozilla.org/en-US/docs/Web/Web_Components) - Lightweight ([mini-source](https://unpkg.com/@palerock/ref-lit/build/ref-lit.mini.js) less than 20k) - Faster & Simply ## Example **[Live Demo](https://jsfiddle.net/cangshi/sku8rtm2/1/)** ```html ``` ```javascript // javascript ``` ## Import Ref-Lit JS - If using `npm` or `yarn` ```shell script # npm npm i @palerock/ref-lit ``` ```shell script # yarn yarn add @palerock/ref-lit ``` - Using ` ``` - Using `Module` on browser ```html ``` ### How to get the ref-js sources? View the root dir named [`build`](https://github.com/canguser/ref-lit/tree/master/build), mini-js or normal chose by yourself. Or using following url to import or download: - [https://unpkg.com/@palerock/ref-lit/build/ref-lit.mini.js](https://unpkg.com/@palerock/ref-lit/build/ref-lit.mini.js) - [https://unpkg.com/@palerock/ref-lit/build/ref-lit.js](https://unpkg.com/@palerock/ref-lit/build/ref-lit.js) ## API Documentation > Now, the documentation is writing. You can take a quick look at the src [`./src/demo`](https://github.com/canguser/ref-lit/tree/master/src/demo) for demos, it's easy to reach it.