0.0.29 • Published 9 months ago

eliora v0.0.29

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

License: Apache-2.0 npm version build status

TypeScript

Eliora

Eliora is a front-end JavaScript framework for building browser applications. It is largely inspired by Aurelia framework for its syntax and it is designed to work with Vite.

Getting started

To setup a new project, just setup a ViteJS vanilla typescript project and add dependency to Eliora framework:

npm create vite@latest my-project -- --template vanilla-ts
cd my-project
npm install
npm i eliora --save

To bootstrap Eliora, update main.ts with this content :

import { Eliora } from "eliora";

new Eliora()
    .registerTemplateModules(import.meta.glob("/src/**/*.html", { as: 'raw' }))
    .register(import("./app-component"));

Then, create the app component, you'll need a app-component.ts...

// app-component.ts
export class AppComponent {
    welcome: string = "Welcome to Eliora";
    name: string = "";
}

...and app-component.html

<!-- app-component.html -->
<form>
  <label>
    <span>What is your name?</span>
    <input value.bind="name">
  </label>
</form>

<p if.bind="name">${welcome}, ${name}!</p>

Finaly, add your component in your index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + TS + Eliora</title>
  </head>
  <body>
    <script type="module" src="/src/main.ts"></script>
    <app-component />
  </body>
</html>
0.0.29

9 months ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago