-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3222e24
commit 81a6c8f
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,13 @@ try { | |
``` | ||
|
||
## Browser | ||
Your javascript file must be imported as module in the html. | ||
```ts | ||
import { SmartC } from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/smartc.min.js'; | ||
Import the minified javascript file. SmartC will be imported as global. | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/smartc.min.js"></script> | ||
``` | ||
|
||
Then in your javascript file, just use it: | ||
```js | ||
// Example: Simple compilation test | ||
try { | ||
const startUpTest = new SmartC({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters