From 332566a662b88f2ca803020f502b449cca172928 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 23 Jan 2015 17:44:29 -0700 Subject: [PATCH] added view.url, data.host --- datamapper-ruhoh.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datamapper-ruhoh.js b/datamapper-ruhoh.js index d1c463c..e21836f 100644 --- a/datamapper-ruhoh.js +++ b/datamapper-ruhoh.js @@ -40,6 +40,7 @@ , next: view.entities[view.entity_index + 1] , previous: view.entities[view.entity_index - 1] , date: view.entity.year + '-' + view.entity.month + '-' + view.entity.day + , url: view.entity.relative_link // TODO , url: view.entities. } , 'page?previous': view.entities[view.entity_index - 1] // ruhoh-twitter only @@ -60,12 +61,12 @@ , twitter: view.author.twitter } , title: view.site.title + , host: view.env.base_url.replace(/^https?:\/\//, '') } , stylesheets: { 'load': function () { return function (text, render) { // TODO pay attention to text of which styles to load? // this is unescaped, right? - console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ magicstache'); return render(view.desi.styles.join('\n')); }; }}