Skip to content

Commit

Permalink
readme: document usage of attribute without value
Browse files Browse the repository at this point in the history
  • Loading branch information
tkareine committed May 4, 2016
1 parent 8bf9653 commit fd71c21
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ assets:
- app
attributes:
id: my-scripts
async:
{% endminibundle %}
```

Expand All @@ -140,14 +141,15 @@ minibundle:
Output in the content file:

``` html
<script src="/assets/site-8e764372a0dbd296033cb2a416f064b5.js" type="text/javascript" id="my-scripts"></script>
<script src="/assets/site-8e764372a0dbd296033cb2a416f064b5.js" type="text/javascript" id="my-scripts" async></script>
```

You can pass custom attributes, like `id="my-scripts"` above, to the
generated markup with `attributes` map inside the `minibundle` block.
You can pass custom attributes, like `id="my-scripts"` and `async`
above, to the generated markup with `attributes` map inside the
`minibundle` block.

For bundling CSS assets, you use `css` as the argument to the
`minibundle` block:
For bundling CSS assets, use `css` as the argument to the `minibundle`
block:

``` text
{% minibundle css %}
Expand Down

0 comments on commit fd71c21

Please sign in to comment.