server_side_dijit
Version:
Middleware plugin for Connect that renders dijit widget templates, which are normally rendered client-side, on the server. Returned pages are modified to include the generated server-side templates inline, with a client-side JavaScript plugin to hook up the templates to the widget.
6 lines (5 loc) • 416 B
HTML
<div>
<button data-dojo-attach-event="onClick:click" data-dojo-attach-point="btn" data-dojo-mixins="server_side/_TemplatedMixin" data-dojo-type="dijit/form/Button" data-dojo-props="label:'Inner button'"></button>
<button data-dojo-type="dijit/form/Button" data-dojo-props="label:'Inner button'"></button>
<button data-dojo-type="dijit/form/Button" data-dojo-props="label:'Inner button'"></button>
</div>