Skip to content

Commit

Permalink
v2.0.1 - add link tags in head
Browse files Browse the repository at this point in the history
  • Loading branch information
staa99 committed Dec 9, 2019
1 parent 7150fa3 commit 193f149
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,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/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).
Download the [partials.js](https://github.com/staa99/partials.js/releases/download/v2.0.1/partials.js) or [partials.min.js](https://github.com/staa99/partials.js/releases/download/v2.0.1/partials.min.js) partials.js.min (the minified version) from github directly for the current version (v2.0.1).

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

```html
<script src="https://cdn.jsdelivr.net/gh/staa99/partials.js@2.0.0/partials.min.js"
integrity="sha512-Hw8gbpqUwd1kdPaYb6GzSrvlRt7q1QiC8G1I/e+tLQPmRtejZIk3TYdzIyzDW2FZ8/eGIWpoM7r9d1p2bSZqig=="
<script src="https://cdn.jsdelivr.net/gh/staa99/partials.js@2.0.1/partials.min.js"
integrity="sha512-S559UnGWXtYy3v7HuMtTfBnk79q3qg+4OQ7403IPYOfjfhorLh6P4Oi7k1+uPwnZ6H8t8y9gY6Lcfv4CNUnDCg=="
crossorigin="anonymous"></script>
```

Expand All @@ -38,8 +38,8 @@ Yes, `partials.js` supports `<partial>` elements since v2.0.0.
### Can `<div data-partial>` and `<partial>` tags be mixed?
Yes, if you used the previous versions. You don't need to rewrite all your `<div data-partial>` tags to upgrade to version 2.

### Does v2.0.0 support request caching for multiple partials to the same view on the same page?
### Does v2.0.1 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+. 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.
No, to use nested partials you must upgrade to 1.1.1+. I recommend the latest, v2.0.1. 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.
2 changes: 1 addition & 1 deletion partials.js.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MtpwQWSotBYpW+Z+HZJddNWrj9eexMXUWWp3aobKZwbDA2nLAeAdAYUBnN+HybArvRvn28DaRaErelSLUzy+Xg==
RcTW7xV8l5trLPrtWayf1NYI6X7tIpyAHCv1IGqMPNIDlGySmZYQoyG4UeFbCbmzKxweky1bdoXioGwUVqFWgA==
2 changes: 1 addition & 1 deletion partials.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion partials.min.js.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Hw8gbpqUwd1kdPaYb6GzSrvlRt7q1QiC8G1I/e+tLQPmRtejZIk3TYdzIyzDW2FZ8/eGIWpoM7r9d1p2bSZqig==
S559UnGWXtYy3v7HuMtTfBnk79q3qg+4OQ7403IPYOfjfhorLh6P4Oi7k1+uPwnZ6H8t8y9gY6Lcfv4CNUnDCg==

0 comments on commit 193f149

Please sign in to comment.