0.7.1 • Published 6 years ago
azalea v0.7.1
azalea
a light-weight and pure javascript framework.
Getting started
Installation
npm install --save azaleaExamples
- azalea-skeleton simple azalea skeleton using webpack
- azalea-todomvc todomvc example implemented using azalea
- azalea-threaditjs threaditjs implemented using azalea
- json-to-csv inspect json to csv
Core concepts
- context
- component
- route
Context
- a plain javascript object
- application level state
Component
<progress component="progress" min="0" max="100" value="30"></progress>- a plain javascript function
function (element, context, render) {}. elementisDOM ElementcontextisContext, the application level staterender' isFunction`, no arguments, will rerun every component againelement.onunloadisFunction?, defined it to destroy the third party plugins or something elseelement.onupdateisFunction?, defined it to call element.onupdate instead of component
Route
routeis a plain javascript objectroute.nameisStringroute.pathisString, to match the window.location.hashroute.beforeisFunction | [Function] | {Function}, accept return value isPromise, often used to prefetch dataroute.afterisFunction | [Function] | {Function}, the same asroute.before
Contribution
since azalea is trying to provide only the minimal essential tools to develop an web application, all pull requests with this consideration will be glad to accept.
Test
npm testLicense
ISC
0.7.1
6 years ago
0.7.0
7 years ago
0.6.0
7 years ago
0.5.0
7 years ago
0.4.1
7 years ago
0.4.0
8 years ago
0.3.4
8 years ago
0.3.3
8 years ago
0.3.2
8 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
9 years ago
0.1.21
9 years ago
0.1.20
9 years ago
0.1.19
9 years ago
0.1.18
9 years ago
0.1.17
9 years ago
0.1.16
9 years ago
0.1.15
9 years ago
0.1.14
9 years ago
0.1.13
10 years ago
0.1.12
10 years ago
0.1.11
10 years ago
0.1.10
10 years ago
0.1.9
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago