Skip to content

Like the porpoise, we rise from the ashes.

Notifications You must be signed in to change notification settings

arniber21/reporpoise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporpoise

HTML:

<div id="app">
    <h1>The Classic Counter :D</h1>

    <input r r-model="count" />

    <button r @click="increaseCount">+</button>
    <button r @click="decreaseCount">-</button>
</div>

JavaScript:

import { Model, query } from "reporpoise";

// Initialize data store:
new Model({
    data: {
        count: 0
    },
    events: {
        increaseCount(data, e) { data.count++; },
        decreaseCount(data, e) { data.count--; }
    }
}).mount(query("#app"));

What is this?

The HTML-looking portion of the above sample isn't some custom JSX-type expression. Instead, it goes directly in your *.html file.

The JavaScript is really just plain JavaScript. No need to transpile any JSX expressions or single-file components, just your standard web languages.

How it works:

About

Like the porpoise, we rise from the ashes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.2%
  • JavaScript 2.8%