From 43f4e851a9a6027c3e7ed7163e48b98fe6a71ca6 Mon Sep 17 00:00:00 2001 From: "Bret K. Ikehara" Date: Fri, 25 Sep 2015 10:49:15 -0700 Subject: [PATCH] Add options parameter example --- readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/readme.md b/readme.md index fbe17b8..fb817d8 100644 --- a/readme.md +++ b/readme.md @@ -108,6 +108,20 @@ All `false` by default. - {Boolean} **keepBlockTags** - Whether to keep `` and `` comments or remove them. - {Boolean} **resolvePaths** - Try to resolve *relative* paths. For example if your `cwd` is ``/``, your html file is `/page/index.html` and you set replacement as `lib/file.js` the result path in that html will be `../lib/file.js` +###### Options example: +```javascript +htmlreplace({ + js: { + src: null, + tpl: '' + } +}, { + keepUnassigned: false, + keepBlockTags: false, + resolvePaths: false +}) +``` + ## Example index.html: