From ef32ef512e7ad937bc3c7040a3eae87ab9c16629 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 23 Jan 2015 15:15:10 -0700 Subject: [PATCH] fix for stylesheets.load --- datamapper-ruhoh.js | 7 ++++--- package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/datamapper-ruhoh.js b/datamapper-ruhoh.js index b01bbd0..d1c463c 100644 --- a/datamapper-ruhoh.js +++ b/datamapper-ruhoh.js @@ -61,13 +61,14 @@ } , title: view.site.title } - , 'stylesheets.load': function () { + , stylesheets: { 'load': function () { return function (text, render) { // TODO pay attention to text of which styles to load? // this is unescaped, right? - render(view.desi.styles.join('\n')); + console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ magicstache'); + return render(view.desi.styles.join('\n')); }; - } + }} , styles: view.desi.styles.join('\n') , assets: view.desi.styles.join('\n') // ruhoh-twitter only , comments: comments // ruhoh-twitter only diff --git a/package.json b/package.json index 84569cf..45d4b60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "desirae-datamap-ruhoh", - "version": "1.0.0", + "version": "1.0.1", "description": "A ruhoh datamap plugin for desirae", "main": "datamapper-ruhoh.js", "scripts": {