UNPKG

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
/** * Object model that represents the {@slotName@} Slot */ function {@slotName@}() {{@slotAttributes@} } {@slotName@}.create = function() { return new {@slotName@}(); } {@slotName@}.prototype.layout = function() { return page.layouts["{@slotName@}"]; } {@slotName@}.prototype.bind = function(json) { return this; } {@slotName@}.prototype.onPreRender = function() { return this; } Fragments.prototype.{@slotName@} = {@slotName@};