Skip to content
Permalink
Browse files

update verb

  • Loading branch information...
jonschlinkert committed Jan 10, 2015
1 parent 443a1cb commit a14a0ff2e99d3486d39e547a6b0b41a60026ad7c
Showing with 5 additions and 8 deletions.
  1. +5 −8 .verbrc.md → .verb.md
@@ -1,17 +1,14 @@
---
tags: ['verb-tag-jscomments']
---
# {%= name %} {%= badge("fury") %}

> {%= description %}
Useful for protecting tokens, like templates in HTML, from being mutated when the string is transformed in some way, like from a formatter/beautifier.

For example, say you want to use [js-beautify] on this string of html: `<ul><li><%= name %></li></ul>`:
**Example without `preserve`**

**Without `preserve`**
Let's say you want to use [js-beautify] on a string of html with Lo-Dash/Underscore templates, such as: `<ul><li><%= name %></li></ul>`:

The variable is now unusable, and the formatting is wrong.
js-beautify will render the template unusable (and apply incorrect formatting because of the unfamiliar syntax from the Lo-Dash template):

```html
<ul>
@@ -21,7 +18,7 @@ The variable is now unusable, and the formatting is wrong.
</ul>
```

**With `preserve`**
**Example with `preserve`**

Correct.

@@ -43,7 +40,7 @@ npm test
```

## API
{%= jscomments("index.js") %}
{%= apidocs("index.js") %}

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue]({%= bugs.url %})

0 comments on commit a14a0ff

Please sign in to comment.
You can’t perform that action at this time.