Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
Not all gadgets need the full weight of the current gadget spec.   This proposal creates a simplified format that may be used.


== Example ==
<pre style="font-size:12pt;">
&lt;?xml version='1.0' encoding='utf-8'?&gt;
&lt;Module title="Simple Gadget"&gt;
 &nbsp; &lt;Data&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      &lt;os:ViewerRequest key='vwr' /&gt;
&nbsp;  &lt;/Data&gt;
&nbsp;  &lt;Templates&gt;
&nbsp;&nbsp;&nbsp;
    &lt;Template tag="my:foo"&gt;
&nbsp;&nbsp;&nbsp;    &lt;div&gt;
&nbsp;&nbsp;&nbsp;
    &lt;img src="${My.person.thumbnailUrl}" /&gt; &lt;br/&gt;
&nbsp;&nbsp;&nbsp;    (Picture of ${My.person.displayName})
&nbsp;&nbsp;&nbsp;    &lt;/div&gt;
&nbsp;&nbsp;&nbsp;    &lt;/Template&gt; &nbsp;
&nbsp; 
  &lt;/Templates&gt;

&nbsp;  &lt;Content type='osml' &gt;
&nbsp;  &lt;h1&gt;Hello, ${vwr.displayName}&lt;/h1&gt;
&nbsp;  &lt;my:foo person="${vwr}" /&gt;
 &nbsp;&lt;/Content&gt;
&lt;/Module&gt;
</pre>


== ModulePrefs as optional ==

The ModulePrefs section may be optional in a gadget.&nbsp;  The Module node may contain a @title attribute for the gadget.&nbsp;  When ModulePrefs is not specified the container may infer what features are required.

== Data section ==

A new Data element may be used to specify data pipeline tags. This is a direct child of the Module element. All data pipeline tags are globally registered.&nbsp;  Data may be scoped to a view(s) by specifying the view name(s) in a @scope attribute of the data pipeline tag.

== Templates section ==

A new Templates element may be used to specify data pipeline tags. This is a direct child of the Module element. All custom tag templates are globally registered.&nbsp;  Templates may be scoped to a view(s) by specifying the view name(s) in a @scope attribute of the Template tag.&nbsp;  This utilizes the syntax defined for template libraries.
http://opensocial-resources.googlecode.com/svn/spec/1.0/OpenSocial-Templating.xml#rfc.section.15