Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
staa99 authored Dec 5, 2019
1 parent f29c29c commit 69183cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ Support partial views in plain HTML with just one line of code
## How to use
### Import the partials.js file
#### Direct download
Download the [partials.js](https://github.com/staa99/partials.js/releases/download/v1.1.1/partials.js) or [partials.min.js](https://github.com/staa99/partials.js/releases/download/v1.1.1/partials.min.js) partials.js.min (the minified version) from github directly for the current version (v1.1.1).
Download the [partials.js](https://github.com/staa99/partials.js/releases/download/v2.0.0/partials.js) or [partials.min.js](https://github.com/staa99/partials.js/releases/download/v2.0.0/partials.min.js) partials.js.min (the minified version) from github directly for the current version (v2.0.0).

#### CDN
Add the following script tag to your HTML code for the current version (v1.1.1).
Add the following script tag to your HTML code for the current version (v2.0.0).

```html
<script src="https://cdn.jsdelivr.net/gh/staa99/partials.js@1.1.1/partials.min.js"
integrity="sha512-683oDThwMTYUMkEUhAhG2XmOqVhDa+O+ke59h6TZB3ov3MfCAlfZEtTWt+EFcwivUniYM6tr6GQxr3GvlMGzDg=="
<script src="https://cdn.jsdelivr.net/gh/staa99/partials.js@2.0.0/partials.min.js"
integrity="sha512-Hw8gbpqUwd1kdPaYb6GzSrvlRt7q1QiC8G1I/e+tLQPmRtejZIk3TYdzIyzDW2FZ8/eGIWpoM7r9d1p2bSZqig=="
crossorigin="anonymous"></script>
```

Expand All @@ -24,8 +24,8 @@ Simply add a `<div data-partials="path/to/partial/view"></div>` wherever you wan
### Are there plans to support custom `<partial` elements?
Yes, there are currently plans to support custom `partial` elements.

### Does v1.1.1 support request caching for multiple partials to the same view on the same page?
### Does v2.0.0 support request caching for multiple partials to the same view on the same page?
No, at this time, there's no support for request caching.

### Does v1.0.0 support nested partials?
No, to use nested partials you must upgrade to 1.1.1. All existing code will work as before, except that nested partials are now resolved.
No, to use nested partials you must upgrade to 1.1.1+. I recommend the latest, v2.0.0. Kindly note that relative paths in 2.0.0+ will always be relative to the location of the partial view, which was not the case in previous versions.

0 comments on commit 69183cd

Please sign in to comment.