Scope of change: Medium
Champion: Chris Cole (MySpace)
Not all gadgets need the full weight of the current gadget spec. This proposal creates a simplified format that may be used.
Code Block |
---|
Example
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version='1.0' encoding='utf-8'?>
<Module title="Simple Gadget">
<Data>
<os:ViewerRequest key='vwr' />
</Data>
<Templates>
<Template tag="my:foo">
<div>
<img src="${My.person.thumbnailUrl}" /> <br/>
(Picture of ${My.person.displayName})
</div>
</Template>
</Templates>
<Content type='osml' >
<h1>Hello, ${vwr.displayName}</h1>
<my:foo person="${vwr}" />
</Content>
</Module>
|
ModulePrefs as optional
The ModulePrefs section may be optional in a gadget. The Module node may contain a @title attribute for the gadget. When ModulePrefs is not specified the container may infer what features are required.
...