Panache is a project mainly written in JavaScript, it's free.
A(nother) Javascript class library.
Panache is a Javascript class framework. It provides methods to create classes with public, private and protected members and full inheritance.
Classes are defined as follows::
const SomeClass = new Class({
private: {
propertyName: initial_value,
methodName: function,
...
},
protected: {
propertyName: initial_value,
methodName: function,
...
},
public: {
propertyName: initial_value,
methodName: function,
...
},
propertyName: initial_value,
methodName: function,
...
init: function
});
var sc = new SomeClass(...);
Subclasses are defined similarly::
const ChildClass = new SomeClass.subclass({ ... });
Where the definition is in the same form as above.
Root-level members are considered public, and will override members of the same name that are explicitly marked public.
The goals of this project are:
Some things it can't do, which may or may not be worthwhile: