aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/xrd_host.tpl11
-rw-r--r--view/xrd_person.tpl17
2 files changed, 28 insertions, 0 deletions
diff --git a/view/xrd_host.tpl b/view/xrd_host.tpl
new file mode 100644
index 000000000..091c1541b
--- /dev/null
+++ b/view/xrd_host.tpl
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'
+ xmlns:hm='http://host-meta.net/xrd/1.0'>
+
+ <hm:Host>$domain</hm:Host>
+
+ <Link rel='lrdd'
+ template='http://$domain/xrd/?uri={uri}'>
+ <Title>Resource Descriptor</Title>
+ </Link>
+</XRD>
diff --git a/view/xrd_person.tpl b/view/xrd_person.tpl
new file mode 100644
index 000000000..acf3c4cf4
--- /dev/null
+++ b/view/xrd_person.tpl
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
+
+ <Subject>$accturi</Subject>
+ <Alias>$profile_url</Alias>
+
+ <Link rel='http://portablecontacts.net/spec/1.0'
+ href='http://example.com/api/people/' />
+ <Link rel='http://webfinger.net/rel/profile-page'
+ type='text/html'
+ href='$profile_url' />
+ <Link rel='http://microformats.org/profile/hcard'
+ type='text/html'
+ href='$profile_url' />
+ <Link rel='http://webfinger.net/rel/avatar'
+ href='$photo' />
+</XRD>