| OLD | NEW |
| 1 The Sky Environment | 1 This file contains documentation for what we hope Sky to support in due course. |
| 2 =================== | 2 It's mostly proposals. It's not intended to be comprehensive. |
| 3 | |
| 4 The main files loaded by the Sky environment are Sky files, though | |
| 5 they can refer to binary resources like images and fonts. | |
| 6 | |
| 7 Sky files | |
| 8 --------- | |
| 9 | |
| 10 Conventional MIME type: ``text/sky``, though this type is neither | |
| 11 necessary nor sufficient to indicate that a file is a Sky file; only | |
| 12 the signature matters for type dispatch of Sky files. | |
| 13 | |
| 14 Conventional extension: ``.sky`` | |
| 15 | |
| 16 Signatures: | |
| 17 | |
| 18 For application files, one of the following: | |
| 19 * ``23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 0a`` ("``#!mojo mojo:sky\n``") | |
| 20 * ``23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 0d`` ("``#!mojo mojo:sky\r``") | |
| 21 * ``23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 20`` ("``#!mojo mojo:sky ``") | |
| 22 | |
| 23 For module files, one of the following: | |
| 24 * ``53 4b 59 20 4d 4f 44 55 4c 45 0a`` ("``SKY MODULE\n``") | |
| 25 * ``53 4b 59 20 4d 4f 44 55 4c 45 0d`` ("``SKY MODULE\r``") | |
| 26 * ``53 4b 59 20 4d 4f 44 55 4c 45 20`` ("``SKY MODULE ``") | |
| 27 | |
| 28 | |
| 29 Notes | |
| 30 ----- | |
| 31 | |
| 32 ``` | |
| 33 magical imports: | |
| 34 the mojo fabric API dart:mojo | |
| 35 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp
osed dart:mojo-shell | |
| 36 the Sky API dart:sky | |
| 37 ``` | |
| OLD | NEW |