Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tiff/368580 to your computer and use it in GitHub Desktop.
Save tiff/368580 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Message Bundle Substitution in Remote Requests">
<Require feature="opensocial-0.9" />
<Require feature="opensocial-templates" />
<Require feature="opensocial-data" />
<Locale lang="all">
<msg name="foo">Hello World</msg>
</Locale>
</ModulePrefs>
<Content type="html"><![CDATA[
<div>Message ( not remotely loaded ): __MSG_foo__</div>
<script xmlns:os="http://ns.opensocial.org/2008/markup" type="text/os-data">
<os:HttpRequest format="text" key="remote_request" href="http://gist.github.com/368589.txt" method="get" />
</script>
<script type="text/os-template" require="remote_request" xmlns:os="http://ns.opensocial.org/2008/markup" xmlns:osx="http://ns.opensocial.org/2009/extensions">
a<os:Html code="${remote_request.content}"/>b
</script>
]]></Content>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment