Skip to content
mailcmdPublic

About

A tiny web reactive lib

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WORK IN PROGRESS

KSS-js

What is this?

A small web reactive lib to do small projects without depend of big frameworks. As the saying goes: “Don't use a sledgehammer to kill a fly.”

DOC

Someday...

---- o -----

My notes for future doc

About the name

  • KSS is pronounced 'keys' (kiːz)
  • KSS means "keep small and simple"
  • The name of this tool/library has nothing to do with what it does, but rather with its philosophy.
  • I thought about naming it FARO (F*ck Angular, React and Others), but it was too much :-P.

Deps

  • Before doing KSS I made DProxy (deep proxy) to make it possible for KSS to work the way I wanted it to. I keep both as sepated libs because DProxy can be used in many other projects.
  • So, KSS depends only of DProxy.

Special attributes

  • :foreach
  • :as
  • :index
  • :if
  • :else-ref
  • :else
  • :content

Rest of attributes

  • When the value of the attribute has any expression starting with '$$' it is processed by KISS.
  • If the expresion is closed inside {...} it will be rendered as string.
  • If the expresion is closed inside [...] it will be rendered as javascript code but NOT RUNNED.

Var references

  • $$ -> it is replaced by the relative context
  • -> it is replaced by the root context

TODO

  • Load templates (includes).
  • Make a way to create sandbox as small modules and integrate them in one APP.
  • Check nested structures.
  • Maybe add text nodes?
  • Improve elements index and search strategy.
  • Resolve remove and insert into arrays and iterable objects.

About

A tiny web reactive lib

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages