Skip to content

Commit

Permalink
Updated README.md 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
MarketingPip authored Nov 26, 2022
1 parent de41049 commit 8d40e57
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ How to use <b><i>File Loader</b></i>:

You can load a script / stylesheet or <b>MULITPLE</b> scripts & stylesheets like so -

```js
```html
<script type="module">
import {FileLoader} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/[email protected]/dist/file-loader.min.js';
async function example_usage(){
try{
Expand All @@ -47,6 +48,7 @@ async function example_usage(){
}
example_usage()
</script>
```


Expand All @@ -59,7 +61,8 @@ How to use <b><i>File Loader</b></i> to load files from a <b>template</b>:

You can store your file(s) to load as a <code>json</code> file and fetch them via a URL. Example below -

```js
```html
<script type="module">
import {FileLoader} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/[email protected]/dist/file-loader.min.js';
async function load_files_from_template(){
try{
Expand All @@ -71,6 +74,7 @@ async function load_files_from_template(){
}
load_files_from_template()
</script>
```

## Append to head
Expand Down

0 comments on commit 8d40e57

Please sign in to comment.