1.3 KiB
1.3 KiB
ElexisJS
TypeScript First Web Framework, for Humans.
ElexisJS is still in beta test now, some breaking changes might happen very often.
What does ElexisJS bring to developer?
- Write website with Native JavaScript syntax and full TypeScript development experiance, no more HTML or JSX.
- For fluent method lovers.
- Easy to import or create extensions to extend more functional.
Installation
- Install from npm
npm i elexis
- Import to your project main entry js/ts file.
import 'elexis';
- Use web packaging tools like Vite to compile your project.
How to Create Element
Using the simple $ function to create any element with node name.
$('a');
This is not jQuery selector! It looks like same but it actually create
<a>
element, not selecting them.
Fluent method
Create and modify element in one line.
$('h1').class('title').css({color: 'red'})
Build your first "Hello, world!" ElexisJS project
Let's try this in your entry file:
$(document.body).content([
$('h1').class('title').content('Hello, world!')
])
Extensions
- @elexis/router: Router for Single Page App.
- @elexis/layout: Build waterfall/justified layout with automatic compute content size and position.