From f4413bf28be9afb8b635c4e35ca85652a08779e1 Mon Sep 17 00:00:00 2001 From: Ben Syverson Date: Fri, 10 Jul 2015 12:32:43 -0500 Subject: [PATCH] Tweaks to get PSH loaded via NPM --- README.md | 9 +++++---- generatedocs.sh | 2 ++ index.js | 5 +++-- lib/putstuffhere.js | 21 ++++++++++++++------- package.json | 2 +- 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 0a49123..8774d87 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ Put Stuff Here will only expand a phrase if it’s in one contiguous line. The l Put Stuff Here can be used in Node, the browser, or via Browserify. ```javascript -var psh = require('./putstuffhere.js').shared(); +var psh = require('putstuffhere').shared(); // Fetch template.html from this directory. psh.getTemplateFunction('template.html', function(err, func) { @@ -103,7 +103,7 @@ psh.getTemplateFunction('template.html', function(err, func) { ```javascript -var psh = require('./putstuffhere.js'); +var psh = require('putstuffhere'); // Compile a string literal directly var func = psh.compileText('

Put title here

'); @@ -113,8 +113,9 @@ console.log( func(locals) ); ``` ```html - - + + +