Skip to content

Refreshing Frontend Framework with the Cleanest JS Reactivity & Purest HTML/CSS Components

License

Notifications You must be signed in to change notification settings

everyyoga/lemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lemon logo

Refreshing Frontend Framework

Cleanest JS Reactivity & Purest HTML/CSS Components

Early Stage Frontend Framework alternative to Vue/React/Angular. Join us at https://reddit.com/r/lemonjs or view the demo at https://lemon.every.yoga

Install & Use

wget https://raw.githubusercontent.com/everyyoga/lemon/main/lemon.js

Simple Example (see /examples for more):

<!-- index.html -->
<html>
    <body>
        <div id="title"></div>
        <input type="text" id="titleInput"></div>
        <script src="./lemon.js"></script>
        <script>
        Lemon.react({
            inputs:{"#titleInput":"title"},
            outputs:{"#title":"title"} 
        });
        Lemon.watch("title",(newValue,oldValue) => {
            console.log('title changed to ' + newValue);
        });
        Lemon.title = 'Hello Lemon';
        </script>
    </body>
</html>

Running the /examples Folder

For the examples folder you'll need a server, otherwise you'll receive a message like 'CORS policy: Cross origin requests are only supported for protocol schemes: http, data, ..'.

# example simple server setup
npm install -g live-server
cd examples
live-server --port=8888 --no-browser
# You should see something like: Serving "lemon/examples" at http://127.0.0.1:8888
# Browse to http://127.0.0.1:8888

About

Refreshing Frontend Framework with the Cleanest JS Reactivity & Purest HTML/CSS Components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published