Well, I could not resist this catchy title, could I? Perhaps I could. In any case I have this idea and implementation where one jQuery plugin is sort-of-a “socket” (not a network socket, but a socket in the wall) into which you can plug-in your “plugs” which will do standard jQuery related stuff.
I have found some time to do it properly at last. If this is all news to you please start from here. the beginnings and motivations are described here.
Classification of patterns of usage aka “Shapes” Sounds very pompous. But it seems it is not and it is very useful to understand how to use dbj.cond effectively. Just click on the image to jump to dbj.cond shapes catalog,
For the ones wondering why would anybody think of if-then-else , I might suggest to start from Wikipedia introduction to the issue.
There are 2 NPM packages one GitHub project and one JSFiddle so far.