Skip to content

snojs/petite-sno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Petite Sno

And its 2 silly brothers Noeval and Notsopetite

A 0.27KB cousin to snocrystal

This version is for petite DOM manipulation.
This is not a framework built for scale.


Worried about eval?

Or if you think it's too slow

No Eval

My personal Choice

Use notsopetite, there is NO boilerplate,

NotSoPetite


The Basics

Declare a variable

let count = 0;

Change it

$("count++");

How do I have this show up on the users end??

<!-- Make a DOM element with the id as the variable name -->
<p id="count"></p>

Now bind it in the JS.

$scope("count");

CONGRATS!! Now every time you update the variable it will reactively update the HTML.

About

A 0.27KB cousin of Sno

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published