Skip to content

Instantly share code, notes, and snippets.

@odogono
Created March 4, 2011 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odogono/854699 to your computer and use it in GitHub Desktop.
Save odogono/854699 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:n2n="http://now2now.com/n/2011">
<title>Visit London</title>
<id>urn:uuid:5cd22f40-3ff9-11e0-94c7-0002a5d5c51b</id>
<updated>2011-02-24T09:40:00Z</updated>
<author>
<name>alexander veenendaal</name>
</author>
<entry>
<id>urn:uuid:37aff880-e14e-ffdd-12d9-9a4332a6260e</id>
<updated>2011-03-01T16:20:30Z</updated>
<title>header</title>
<n2n:param name="type" value="header"/>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<div class="header_banner"><center><a href="/"><img height="33" src="/img/logo-white.png" style="padding:0.5em;" width="150" /></a></center></div>
</div>
</content>
</entry>
<entry>
<id>urn:uuid:3bb902ab-e483-4b07-abd8-87970135c8b0</id>
<updated>2011-03-01T14:33:00Z</updated>
<title>Title Image JQM</title>
<n2n:param name="comment" value="the include:path (see json_renderer params) means that only the root page will show the header image" />
<n2n:param name="include:path" value="/" />
<n2n:param name="include:render_target" value="jqm" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<center><img class="header_image" /></center>
</div>
</content>
</entry>
<entry>
<id>urn:uuid:edb202e5-7d3b-4319-bbee-acc490e581db</id>
<updated>2011-03-01T16:32:00Z</updated>
<title>Title Image XHTML</title>
<n2n:param name="comment" value="the include:path (see json_renderer params) means that only the root page will show the header image" />
<n2n:param name="include:path" value="/" />
<n2n:param name="include:render_target" value="xhtml" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<center><img src="/img/header.290.jpg" /></center>
</div>
</content>
</entry>
<entry>
<id>urn:uuid:f2fa98a0-3ffd-11e0-ab80-0002a5d5c51b</id>
<updated>2011-02-24T09:50:00Z</updated>
<title>Menu Datasource</title>
<n2n:param name="type" value="datasource"/>
<link type="application/php+xml" href="json_renderer"><inline>
<param name="path" value="/" />
<param name="comment" value="selects a particular node in the json content" />
</inline></link>
<content type="application/json">
{
"/":{
"list":[
{"name":"Places to go", "href":"/places"},
{"name":"Eat and drink", "href":"/category/food-and-drink"},
{"name":"Essential Info", "href":"/info"},
{"name":"Travel", "href":"/travel"},
{"name":"Accommodation", "href":"/category/accommodation"},
{"name":"External Links", "divider":true },
{"name":"Follow us on Twitter", "external_href":"http://twitter.com/visitlondonweb"},
{"name":"Join us on Facebook", "external_href":"http://www.facebook.com/visitlondon"}
],
"javascript":[
"VLMobile.lookupLocation();"
]
},
"/places/":{
"title":"Places to go",
"list":[
{"name":"VL Blog", "href":"/vlblog"},
{"name":"Theatre", "href":"/places/theatre"},
{"name":"Cinema", "href":"/category/attraction/entertainment/cinema"},
{"name":"Attractions", "href":"/places/attractions"},
{"name":"Galleries &amp; Museums", "href":"/places/galleries"},
{"name":"Shopping", "href":"/places/shopping"}
]
},
"/places/theatre/":{
"title":"Places to go / Theatre",
"list":[
{"name":"Theatre Offers", "href":"/theatre_offers"},
{"name":"Find a Theatre", "href":"/category/attraction/entertainment/theatre"}
]
},
"/places/attractions/":{
"title":"Places to go / Attractions",
"list":[
{"name":"Attractions", "href":"/category/attraction"},
{"name":"Openspaces", "href":"/category/openspace"},
{"name":"Sightseeing", "href":"/category/sightseeing"}
]
},
"/places/galleries/":{
"title":"Places to go / Galleries &amp; Museums",
"list":[
{"name":"Galleries", "href":"/category/attraction/tourist-attraction/gallery"},
{"name":"Museums", "href":"/category/attraction/tourist-attraction/museum"}
]
},
"/places/shopping/":{
"title":"Places to go / Shopping",
"list":[
{"name":"Clothes", "href":"/category/shopping/clothes"},
{"name":"Collectables", "href":"/category/shopping/gift-collectable"},
{"name":"Electronic", "href":"/category/shopping/electronic"},
{"name":"Food shop", "href":"/category/shopping/food-shop"},
{"name":"Fashion Accessory", "href":"/category/shopping/fashion-accessory"},
{"name":"Health", "href":"/category/shopping/health"},
{"name":"Markets", "href":"/category/shopping/market"},
{"name":"Shopping Area", "href":"/category/shopping/shopping-area"},
{"name":"Shopping Centre", "href":"/category/shopping/shopping-centre"},
{"name":"Sports", "href":"/category/shopping/sports"},
{"name":"Toy Hobby Craft", "href":"/category/shopping/toy-hobby-craft"}
]
},
"/info/":{
"title":"Essential Info",
"list":[
{"name":"Weather", "href":"/weather"},
{"name":"Emergency numbers", "href":"/useful_numbers"},
{"name":"Financial Services", "href":"/category/financial"},
{"name":"Tourist Information", "href":"/category/tourism-services/tourist-information"}
]
},
"/travel/":{
"title":"Travel",
"list":[
{"name":"Public Transport", "href":"/public_transport"},
{"name":"Taxi", "href":"/taxi"}
]
},
"/taxi/":{
"title":"Taxi",
"content":[
"These are details about taxis"
]
}
}</content>
</entry>
<entry>
<id>urn:uuid:9f767ae0-3ffe-11e0-be4b-0002a5d5c51b</id>
<updated>2011-02-24T09:48:00Z</updated>
<title>Menu Items JQM</title>
<n2n:param name="include:render_target" value="jqm" />
<n2n:param name="render_single" />
<content type="application/x-mustache"><![CDATA[
<h5>{{title}}</h5>
<ul data-role="listview" data-inset="true">
{{#list}}
{{#divider}}
<li data-role="list-divider">{{name}}</li>
{{/divider}}
{{^divider}}
{{#external_href}}<li><h3><a rel="external" target="_blank" href="{{external_href}}">{{name}}</a></h3></li>{{/external_href}}
{{^external_href}}<li><h3><a href="{{href}}">{{name}}</a></h3></li>{{/external_href}}
{{/divider}}
{{/list}}
</ul>
{{%IMPLICIT-ITERATOR}}
{{#content}}
<p>{{.}}</p>
{{/content}}
{{#javascript}}
<script type="text/javascript">$(function(){
{{.}}
});</script>
{{/javascript}}
]]></content>
</entry>
<entry>
<id>urn:uuid:95eb8c40-3ffe-11e0-a07c-0002a5d5c51b</id>
<updated>2011-02-24T09:48:01Z</updated>
<title>Menu Items XHTML</title>
<n2n:param name="exclude:render_target" value="jqm" />
<n2n:param name="render_single" />
<content type="application/x-mustache"><![CDATA[
<h5>{{title}}</h5>
<div class="list">
{{#list}}
{{^divider}}
<div><h3><a href="{{href}}">{{name}}</a></h3></div>
{{/divider}}
{{/list}}
</div>
{{%IMPLICIT-ITERATOR}}
{{#content}}
<p>{{.}}</p>
{{/content}}
]]></content>
</entry>
<entry>
<id>urn:uuid:73021f5f-156d-4cd8-97cf-e161e340e0c4</id>
<updated>2011-02-04T10:42:00Z</updated>
<title>footer</title>
<n2n:param name="type" value="footer"/>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<div class="footer">
<p><a href="/about">About Visit London Mobile</a></p>
<p><a rel="external" target="_blank" href="http://www.visitlondon.com">View full website</a></p>
<p>Visit London © 2011</p>
</div>
</div>
</content>
</entry>
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment