diff --git a/README.MD b/README.MD index bd030c5..9701d82 100644 --- a/README.MD +++ b/README.MD @@ -1,6 +1,8 @@ # express-render-template -Extends res.render allowing an external URL to be used as a layout & CSS selector as a placeholder location _(alternative to an iframe)_. +Use the HTML source of an external URL as an express layout template, a clean alternative to an iframe. + +Extends res.render allowing an external URL to be used as a layout & CSS selector as a placeholder location to inject view content. ## Installation @@ -29,16 +31,16 @@ app.get('/', function(req, res){ }); ``` -## View Template +## View template ```html

20% off Dickies Workwear

``` -## Auto Base Tag Injection +## Auto base tag injection To ensure scripts, styles and images in the external template load on your site, the render method injects a HTML base tag ``````. Therefore you need to ensure any links within your view are absolute. ## License -[ISC License](LICENSE) © 2016 [John Doherty](http://wwww.johndoherty.info/) \ No newline at end of file +[ISC License](LICENSE) © 2016 [John Doherty](https://courseof.life/johndoherty) \ No newline at end of file diff --git a/package.json b/package.json index 8641722..10e7b26 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "express-render-template", - "version": "0.0.9", - "description": "Extends res.render allowing an external URL to be used as a layout & CSS selector as a placeholder location (alternative to an iframe)", + "version": "1.0.0", + "description": "Use the HTML source of an external URL as an express layout template (clean iframe alternative)", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified yet!\" && exit 1" @@ -13,7 +13,10 @@ "keywords": [ "express", "render", - "iframe" + "template", + "layout", + "iframe", + "alternative" ], "author": "John Doherty (www.johndoherty.info)", "license": "ISC",