113 karma · joined March 29, 2012
var isMultilanguage = function(field) {
return field.multilanguage === true;
};var isNotMultilanguage = function(field) {
return field.multilanguage !== true;
};var getMultilanguageFields = function (fields) {
return _.filter(fields, isMultilanguage);
};var getNonMultilanguageFields = function (fields) {
return _.filter(fields, isNotMultilanguage);
};into this
var isMultilanguage = R.where({multilanguage: true});
var isNotMultilanguage = R.not(isMultilanguage);
var getMultilanguageFields = R.filter(isMultilanguage);
var getNonMultilanguageFields = R.filter(isNotMultilanguage);
I also noticed that my submodule isn't working as I expected, temp fix: cd into roots/salt and execute "rm vespakoen && git clone https://github.com/Vespakoen/salt-states vespakoen"
What if we all suggest a unique name and they can pick a new one from something awesome one of us has suggested?
Great to see open source, light-weight, backbone based, frameworks =D
I am building a mobile application for a project I am working on and for this I have also (after using a lot of other libraries) built my own framework.
It consists of 3 packages.
1) sass-ratchet (repo: https://github.com/jocks/sass-ratchet)
This is my sass port of ratchet (just starting). It basically adds vendor prefixes, and puts a couple of main colors in a variable, and calculates all colors with the darken() method in sass. I am not really happy with the variable names yet, so expect a lot of change in this repo.
2) jocks (repo: https://github.com/jocks/jocks) (docs: http://jocks.koenschmeets.nl/#!/api)
Jocks (JavaScript Blocks) is based on Backbone + MarionetteJS, it allows me to have JavaScript create the DOM elements for me (and keeping a reference to it), and allows me to define methods on a block to manipulate it easily after it has rendered. Basically, any component will only be rendered once, after that, it's manipulation. I am planning on wrapping up Bootstrap too, and use it for building web applications.
3) jockstrap-ratchet
This library is based on tbranyen's excellent backbone-boilerplate (https://github.com/tbranyen/backbone-boilerplate), extends the "jocks blocks" to make it play nice with the phone, and includes a nice build process to minify all your stuff into 3 files.
I would love to see how we can help each other out, for example, a good start would be to put both our efforts in creating and maintaining a single sass / less port for Ratchet.
Oh, I'll put my project on Hackers News once it is more complete (along with a demo and a getting started guide).