Skip to content

Instantly share code, notes, and snippets.

@wittemann
Created January 14, 2010 08:56
Show Gist options
  • Save wittemann/276994 to your computer and use it in GitHub Desktop.
Save wittemann/276994 to your computer and use it in GitHub Desktop.
github.gist.content.xml
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Martin Wittemann</author>
<author>Fabian Jakobs</author>
<documentationURL></documentationURL>
<sampleQuery>select * from {table} where repo='276994'</sampleQuery>
</meta>
<bindings>
<select itemPath="content" produces="XML">
<urls>
<url>http://gist.github.com/{repo}.txt</url>
</urls>
<inputs>
<key id="repo" type="xs:string" paramType="path" required="true"/>
</inputs>
<execute><![CDATA[
var content = request.get().response;
response.object = <content>{content}</content>;
]]></execute>
</select>
</bindings>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment