<commit_before># ember-inline-svg

Displays SVG images inline.

## Usage

```handlebars
{{inline-svg "path/to/file"}}
```

This will display the SVG found at `/public/images/path/to/file.svg` (see below on how to change this).

You can specify a class for the element like so:

```handlebars
{{inline-svg "my-svg" class="foo"}}
```

## Configuring

### SVG Paths

By default the addon expects to find your SVG images at `/public/images/`, but you can change this
by setting the `svg.paths` option in your application's Brocfile.js

```javascript
var app = new EmberApp({
  svg: {
    paths: [
      'public/images',
      'app/svgs'
    ]
  }
});
```

### Optimizing

SVGs are optimized by [svgo](https://github.com/svg/svgo) by default.

You can configure this by setting the `svg.optimize` options:

```javascript
var app = new EmberApp({
  svg: {
    optimize: {
      removeDoctype: false
    }
  }
});
```

Alternatively, you can disable it completely by setting this to false:

```javascript
var app = new EmberApp({
  svg: {
    optimize: false
  }
});<commit_msg>update README with working example of configuring svgo<commit_after># ember-inline-svg

Displays SVG images inline.

## Usage

```handlebars
{{inline-svg "path/to/file"}}
```

This will display the SVG found at `/public/images/path/to/file.svg` (see below on how to change this).

You can specify a class for the element like so:

```handlebars
{{inline-svg "my-svg" class="foo"}}
```

## Configuring

### SVG Paths

By default the addon expects to find your SVG images at `/public/images/`, but you can change this
by setting the `svg.paths` option in your application's Brocfile.js

```javascript
var app = new EmberApp({
  svg: {
    paths: [
      'public/images',
      'app/svgs'
    ]
  }
});
```

### Optimizing

SVGs are optimized by [svgo](https://github.com/svg/svgo) by default.

You can configure this by setting the `svg.optimize` options:

```javascript
var app = new EmberApp({
  svg: {
    optimize: {
      plugins: [
        { removeDoctype: false },
        { removeTitle: true },
        { removeDesc: true }
      ]
    }
  }
});
```

Alternatively, you can disable it completely by setting this to false:

```javascript
var app = new EmberApp({
  svg: {
    optimize: false
  }
});
{'fraction_non_alphanumeric': 0.13406593406593406, 'fraction_numerical': 0.0, 'mean_word_length': 3.286252354048964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2509287', 'n_tokens_mistral': 785, 'n_tokens_neox': 744, 'n_words': 256}