slot-framework
Version:
Closing the gap between server and client side, Slot is a Cross Side Web Framework that let you reuse the same code on client and server side
16 lines (14 loc) • 441 B
Plain Text
/**
* Object model that represents the {@slotName@} Slot
*/
function {@}() {{@}
}
{@}.create = function() { return new {@}(); }
{@}.prototype.layout = function() { return page.layouts["{@slotName@}"]; }
{@}.prototype.bind = function(json) {
return this;
}
{@}.prototype.onPreRender = function() {
return this;
}
Fragments.prototype.{@} = {@};