OpenSocial templates can be rendered in two ways:
Automatic rendering of the template on gadget load
Template markup placed within a
script block with the type set to
text/os-template is automatically rendered
when the gadget loads. Should you want to prevent template blocks from
automatically rendering, you can set a
Param node within the
Require element for the
opensocial-templates feature to be disabled,
<Require feature="opensocial-templates"> <Param name="disableAutoProcessing">true</Param> </Require>
By default, the template markup will be inserted into the gadget
in the location where the
block is placed within the gadget.
Should we want to embed a template within our existing HTML markup to display a welcome message to the current ...