tree: 24d5f84e9f005fa746cff76be3a6e0edbe8c5604
  1. animation.md
  2. builtins.md
  3. conventions.md
  4. debug.md
  5. design.md
  6. elements.md
  7. events.md
  8. fonts.md
  9. frameworks.md
  10. gestures.md
  11. keyboard.md
  12. markup.md
  13. modules.md
  14. mojom.md
  15. parsing.md
  16. pointer.md
  17. README.md
  18. runloop.md
  19. script.md
  20. style.md
  21. style2.md
  22. utils.md
sky/specs/README.md

The Sky Environment

The main files loaded by the Sky environment are Sky files, though they can refer to binary resources like images and fonts.

Sky files

Conventional MIME type: text/sky, though this type is neither necessary nor sufficient to indicate that a file is a Sky file; only the signature matters for type dispatch of Sky files.

Conventional extension: .sky

Signatures:

For application files, one of the following:

  • 23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 0a (“#!mojo mojo:sky\n”)
  • 23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 0d (“#!mojo mojo:sky\r”)
  • 23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 20 (“#!mojo mojo:sky ”)

For module files, one of the following:

  • 53 4b 59 20 4d 4f 44 55 4c 45 0a (“SKY MODULE\n”)
  • 53 4b 59 20 4d 4f 44 55 4c 45 0d (“SKY MODULE\r”)
  • 53 4b 59 20 4d 4f 44 55 4c 45 20 (“SKY MODULE ”)

Notes

magical imports:
  the mojo fabric API   dart:mojo
  the mojom for the shell, proxying through C++ so that the shell pipe isn't exposed  dart:mojo-shell
  the Sky API  dart:sky