Skip to content

Commit a48118e

Browse files
committed
Merge branch 'master' of https://github.com/staa99/partials.js
2 parents 88862d8 + 70ea4e4 commit a48118e

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,22 @@ Support partial views in plain HTML with just one line of code
77
Download the [partials.js](https://github.com/staa99/partials.js/releases/download/v1.0.0/partials.js) or [partials.min.js](https://github.com/staa99/partials.js/releases/download/v1.0.0/partials.min.js) partials.js.min (the minified version) from github directly for the current version (v1.0.0).
88

99
#### CDN
10-
Add <script src="https://cdn.jsdelivr.net/gh/staa99/partials.js@1.0.0/partials.min.js"></script>
11-
to your HTML code for the current version (v1.0.0).
10+
Add the following script tag to your HTML code for the current version (v1.0.0).
11+
12+
```html
13+
<script src="https://cdn.jsdelivr.net/gh/staa99/partials.js@1.0.0/partials.min.js"
14+
integrity="sha512-+TluO33Ol2y/d5CnHHCS9gb6FAilwm1uxLFKZs35B0OAftAPMJpBUtxrIMwPfsRrN7A+pg0HR6R5fashqVuT+A=="
15+
crossorigin="anonymous"></script>
16+
```
1217

1318
### Add your partial views
14-
Simply add a <div data-partials="path/to/partial/view"></div> wherever you want to load the view at 'path/to/partial/view' as a partial view.
19+
Simply add a `<div data-partials="path/to/partial/view"></div>` wherever you want to load the view at `'path/to/partial/view'` as a partial view.
20+
21+
22+
## FAQs
23+
24+
### Are there plans to support custom `<partial` elements?
25+
Yes, there are currently plans to support custom `partial` elements.
26+
27+
### Does v1.0.0 support request caching for multiple partials to the same view on the same page?
28+
No, at this time, there's no support for request caching.

0 commit comments

Comments
 (0)