raptorjs-legacy / raptorjs

Source code for the RaptorJS Toolkit
Other
94 stars 12 forks source link

Raptor Templates: Allow the widget config object to be provided directly in the markup #18

Open patrick-steele-idem opened 11 years ago

patrick-steele-idem commented 11 years ago
<div w:widget="ui/buttons/ButtonWidget; config=someConfigObj">

OR:

<w:widget js-class="ui/buttons/ButtonWidget" config="someConfigObj">

Nice-to-have: Support providing config properties individually in the template:

<w:widget js-class="ui/buttons/ButtonWidget" config-label="data.label">