Smallfoot.js
Description
Smallfoot.js is a minimalist library for functional programming, with small footprint.
Github
https://github.com/szilveszter9/smallfoot.js
Examples
- For more examples see: play.js at https://github.com/szilveszter9/smallfoot-sandbox
- Get a DOM element, read it's innerHTML, make it uppercase, and log that. (Read it from bottom to top.)
var app = l; ;
- Request JSON data and inject it into a template. (Read the compose from right to left.)
var userTemplate = ltemplate;var url = "https://api.github.com/repos/mozilla/kuma/contributors";var userTemplates = l;var usersTemplate = l;var eitherUsersTemplate = l;{ var setMydiv = ; var showUsers = l; lhttpurl;} ;
NPM
https://www.npmjs.com/package/smallfoot
Installation
npm install smallfoot
Contribution
Bug fixes, docs and examples are welcomed.
You can start with smallfoot-sandbox, see https://github.com/szilveszter9/smallfoot-sandbox
git clone https://github.com/szilveszter9/smallfoot.jsgit clone https://github.com/szilveszter9/smallfoot-sandboxcd smallfoot-sandboxnpm installnpm link ../smallfoot.jsnpm run devnpm start