{"_id":"handlebars-delimiters","_rev":"13-f5198ce37b08754b3ad5006ce816bc24","name":"handlebars-delimiters","description":"Custom delimiters, for Handlebars templates.","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"handlebars-delimiters","description":"Set custom delimiters with Handlebars templates.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/handlebars-delimiters","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/handlebars-delimiters.git"},"bugs":{"url":"https://github.com/jonschlinkert/handlebars-delimiters/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/handlebars-delimiters/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb-tag-jscomments":">= 0.2.0","verb":">= 0.2.6","mocha":"*"},"keywords":["change","compile","delimiter","delimiters","delims","expression","handlebars","hbs","re","regex","regexp","regular","render","switch","syntax","template","templates"],"dependencies":{"handlebars":"^2.0.0"},"_id":"handlebars-delimiters@0.1.0","_shasum":"d038def83750580f51ff5dbab91cbdc1e90edf55","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d038def83750580f51ff5dbab91cbdc1e90edf55","tarball":"https://registry.npmjs.org/handlebars-delimiters/-/handlebars-delimiters-0.1.0.tgz","integrity":"sha512-/5LiXxsln2gna/GGBq2V1gULUsTXvNXFDeTqzpNuabMgkxk0zuiRdjeAf5HP3YAPyzVVPxIz2i3bdY31c8dIxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiTqRbHcE/mWaVeJEBh+NBUas/T3ZAEknAh8TbPFMSYQIgbqA2+y8OW2i5Rs8ggRPRs/BU6YdtVyp7+vxvUAqiLPk="}]}},"0.1.1":{"name":"handlebars-delimiters","description":"Custom delimiters, for Handlebars templates.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/handlebars-delimiters","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/handlebars-delimiters.git"},"bugs":{"url":"https://github.com/jonschlinkert/handlebars-delimiters/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.9","handlebars":"^4.0.5"},"keywords":["change","compile","delimiter","delimiters","delims","expression","handlebars","hbs","re","regex","regexp","regular","render","switch","syntax","template","templates"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb"]},"gitHead":"30b1c9da4554bce6fa5d0c70378e7165960f968a","_id":"handlebars-delimiters@0.1.1","_shasum":"7adedb542115fd45c1a8f4cd175033f92539bef5","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"7adedb542115fd45c1a8f4cd175033f92539bef5","tarball":"https://registry.npmjs.org/handlebars-delimiters/-/handlebars-delimiters-0.1.1.tgz","integrity":"sha512-EasGpZEtuujwDSHESecF9wHetaizoK5l0N9voMurVafYXy+aU5isf27W89S5ICE6oRneiNguLv3URXb7Z4ev2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQnIWegKSC+S2anp5t25Th4OPdKW5mitaJYofXj6oI2gIgAxXhrNLDc1ydvQ/O7DrD9u7nf5XtCenLkbngDfsRcDA="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/handlebars-delimiters-0.1.1.tgz_1463421038534_0.7630407207179815"}},"0.1.2":{"name":"handlebars-delimiters","description":"Custom delimiters, for Handlebars templates.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/handlebars-delimiters","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/handlebars-delimiters.git"},"bugs":{"url":"https://github.com/jonschlinkert/handlebars-delimiters/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.9","handlebars":"^4.0.5"},"keywords":["change","compile","delimiter","delimiters","delims","expression","handlebars","hbs","re","regex","regexp","regular","render","switch","syntax","template","templates"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["handlebars-lint","handlebars-helpers","template-helpers"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"9032f0f9ef00bbfe9e87c7c8b5b588070359b38e","_id":"handlebars-delimiters@0.1.2","_shasum":"2db94e1c5c17a859e0456f1b62d78757f0ba390a","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"2db94e1c5c17a859e0456f1b62d78757f0ba390a","tarball":"https://registry.npmjs.org/handlebars-delimiters/-/handlebars-delimiters-0.1.2.tgz","integrity":"sha512-RWHlf4IG2yXysfQ+p0/agyXwE/B/VHrzTuSdbAAptOfkduC3m8TP7Mv9xjMCd+RNhUK/BNuu+Nhz/LQwYT82Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq4w/nIG5WMn0lfSzGQhvkHWEeivXFVaaSp/b5IG4USAIgHbvhFrgBEwKOe2obCROVoDZoBG0iOv8QZoTbn85Czoo="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/handlebars-delimiters-0.1.2.tgz_1463421142757_0.8195716347545385"}},"1.0.0":{"name":"handlebars-delimiters","description":"Custom delimiters, for Handlebars templates.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/handlebars-delimiters","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Adam McCormick","url":"https://github.com/AdamMcCormick"},{"name":"Changyu Geng","url":"https://github.com/KingMario"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/handlebars-delimiters.git"},"bugs":{"url":"https://github.com/jonschlinkert/handlebars-delimiters/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.9","handlebars":"^4.0.5","mocha":"^3.4.2"},"keywords":["change","compile","delimiter","delimiters","delims","expression","handlebars","hbs","re","regex","regexp","regular","render","switch","syntax","template","templates"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["handlebars-helpers","handlebars-lint","template-helpers"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"87b9c08eb47f6e090a7717a378b72aba6a629204","_id":"handlebars-delimiters@1.0.0","_npmVersion":"5.0.4","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"email":"brian.woodward@gmail.com","name":"doowb"},{"email":"github@sellside.com","name":"jonschlinkert"}],"dist":{"integrity":"sha512-zFywAzBqEdRz2N2uQ/cT0qxDkL+mHUP5Ap/Zf5sxlcy8QOMUkNSuA9TgIC1MFnA9l8OWX3EW8fCWZMvfBMQ2PA==","shasum":"9265c7b5475dcb24c2896f60352f1e2bee5a8c5e","tarball":"https://registry.npmjs.org/handlebars-delimiters/-/handlebars-delimiters-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYBRySfn5IHm+RCAp89n42P8N/1QnmdUQb+c6VbkDnSAiEA00iy/HseKAtsU925HcE8/Fc1SIz81Qz+paz9KSnfopo="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/handlebars-delimiters-1.0.0.tgz_1499285300117_0.6096101310104132"}}},"readme":"# handlebars-delimiters [![NPM version](https://img.shields.io/npm/v/handlebars-delimiters.svg?style=flat)](https://www.npmjs.com/package/handlebars-delimiters) [![NPM monthly downloads](https://img.shields.io/npm/dm/handlebars-delimiters.svg?style=flat)](https://npmjs.org/package/handlebars-delimiters) [![NPM total downloads](https://img.shields.io/npm/dt/handlebars-delimiters.svg?style=flat)](https://npmjs.org/package/handlebars-delimiters) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/handlebars-delimiters.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/handlebars-delimiters)\n\n> Custom delimiters, for Handlebars templates.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save handlebars-delimiters\n```\n\n## Release history\n\n### v1.0.0\n\n* **breaking changes**: the `.escapeDelims` method was renamed to `.escape`\n* adds a `.replace` method that replaces delimiters and returns a string\n\n## Usage\n\n```js\nvar delimiters = require('handlebars-delimiters');\nvar Handlebars = require('handlebars');\n\n/**\n * Before\n */\n\nvar a = Handlebars.compile('{{ name }}<%= name %>')({name: 'Jon'});\nconsole.log(a);\n//=> 'Jon<%= name %>'\n\n/**\n * After\n */\n\n// Pass your instance of Handlebars and define custom delimiters\ndelimiters(Handlebars, ['<%=', '%>']);\nvar b = Handlebars.compile('{{ name }}<%= name %>')({name: 'Jon'});\nconsole.log(b);\n//=> '{{ name }}Jon'\n```\n\n## API\n\n**Params**\n\n* `Handlebars` **{Object}**\n* `delimiters` **{Array}**: Array with open and close delimiters, like `['<%', '%>']`\n* `returns` **{undefined}**\n\n**Example**\n\n```js\nvar delimiters = require('handlebars-delimiters');\nvar handlebars = require('handlebars');\ndelimiters(handlebars, ['<%', '%>']);\n// you can now use handlebars as usual, but with the new delimiters\n```\n\n### [.replace](index.js#L71)\n\nReplace or delimiters in the given string.\n\n**Params**\n\n* `str` **{String}**: String with handlebars to replace or escape.\n* `source` **{String}**: The delimiters regex source string to conver to a regular expression.\n* `escape` **{Boolean}**: If true, replacements are escaped with a double-slash.\n* `returns` **{String}**\n\n**Example**\n\n```js\nvar replaced = delimiters.replace(str, ['<%=', '%>']);\n```\n\n### [.escape](index.js#L96)\n\nEscape handlebars delimiters in the given string.\n\n**Params**\n\n* `str` **{String}**: String with handlebars to replace or escape.\n* `returns` **{String}**\n\n**Example**\n\n```js\nvar escaped = delimiters.escape(str);\n```\n\n## About\n\n### Related projects\n\n* [handlebars-helpers](https://www.npmjs.com/package/handlebars-helpers): More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate… [more](https://github.com/helpers/handlebars-helpers) | [homepage](https://github.com/helpers/handlebars-helpers \"More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.\")\n* [handlebars-lint](https://www.npmjs.com/package/handlebars-lint): Pass a context and a string with handlebars templates and lint for missing variables, helpers… [more](https://github.com/jonschlinkert/handlebars-lint) | [homepage](https://github.com/jonschlinkert/handlebars-lint \"Pass a context and a string with handlebars templates and lint for missing variables, helpers, block helpers or partials.\")\n* [template-helpers](https://www.npmjs.com/package/template-helpers): Generic JavaScript helpers that can be used with any template engine. Handlebars, Lo-Dash, Underscore, or… [more](https://github.com/jonschlinkert/template-helpers) | [homepage](https://github.com/jonschlinkert/template-helpers \"Generic JavaScript helpers that can be used with any template engine. Handlebars, Lo-Dash, Underscore, or any engine that supports helper functions.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 6 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 4 | [KingMario](https://github.com/KingMario) |\n| 2 | [AdamMcCormick](https://github.com/AdamMcCormick) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 05, 2017._","maintainers":[{"email":"brian.woodward@gmail.com","name":"doowb"},{"email":"github@sellside.com","name":"jonschlinkert"}],"time":{"modified":"2022-06-18T18:52:02.474Z","created":"2014-09-14T13:24:17.943Z","0.1.0":"2014-09-14T13:24:17.943Z","0.1.1":"2016-05-16T17:50:40.681Z","0.1.2":"2016-05-16T17:52:25.289Z","1.0.0":"2017-07-05T20:08:21.124Z"},"homepage":"https://github.com/jonschlinkert/handlebars-delimiters","keywords":["change","compile","delimiter","delimiters","delims","expression","handlebars","hbs","re","regex","regexp","regular","render","switch","syntax","template","templates"],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/handlebars-delimiters.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/handlebars-delimiters/issues"},"readmeFilename":"README.md","users":{"xumakjosh":true,"lwdthe1":true,"gurunate":true},"license":"MIT","contributors":[{"name":"Adam McCormick","url":"https://github.com/AdamMcCormick"},{"name":"Changyu Geng","url":"https://github.com/KingMario"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}]}