summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNisheet Sinvhal <nisheet1.sinvhal@gmail.com>2018-11-03 21:16:48 +0530
committerRyan Dahl <ry@tinyclouds.org>2018-11-03 08:46:48 -0700
commit2cf3a89f63c7bc7cfd9404f779b796c29c8e9598 (patch)
tree0bd6e59831a0a8125e5c4ea208722e203ac8747f
parentb9914c31139546336beed45b4764777fd6a5fcd3 (diff)
Add documentation as per #1105 (#1116)
-rw-r--r--Docs.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/Docs.md b/Docs.md
index b5bb508da..76e819167 100644
--- a/Docs.md
+++ b/Docs.md
@@ -75,6 +75,16 @@ while (true) {
// TODO top level await doesn't work yet.
```
+### Example: Url imports
+
+```ts
+import { printHello } from "https://raw.githubusercontent.com/denoland/deno/master/tests/subdir/print_hello.ts";
+printHello();
+```
+
+The next time you import the same file from same uri it will use the cached
+resource instead of downloading it again.
+
## How to Profile Deno
```sh