sauron
Sauron is an HTML web framework for building web-apps with the goal of closely adhering to The Elm Architecture, a paragon of elegant design.
Sauron follow Elm's simplistic design of writing view code.
Example
use trace;
use attr;
use text;
use *;
use ;
index.html
Minimal sauron app
In Cargo.toml, specify the crate-type to be cdylib
[]
= "minimal"
= "0.1.0"
= "2018"
[]
= ["cdylib"]
[]
= "0.32"
= "0.1"
= "0.4"
= "0.2"
Build using
Look at the examples and the build script for the details.
Demo examples
- todomvc The todomvc example
- futuristic-ui - A demo of futuristic-ui showcasing animation, transition and timed Component update.
- data-viewer - A resizable spreadsheet CSV data viewer
- svg-clock - A clock drawn using SVG and window tick event.
- svg-graph - A simple graph using SVG
- tinki wiki - My personal wiki, powering my github pages
Converting HTML into Sauron's syntax
html2sauron - A tool to easily convert html into sauron node tree for your views.
Prerequisite:
Performance:
Sauron is one of the fastest.
Run the benchmark yourself:
Please support this project:
License: MIT