Created
April 16, 2010 15:37
-
-
Save tiff/368580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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