Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: sky/specs/modules.md

Issue 695043002: Specs: make element registrations be per-module, define how they are (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« sky/specs/apis.md ('K') | « sky/specs/apis.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/modules.md
diff --git a/sky/specs/modules.md b/sky/specs/modules.md
index 50fae43ae769a86dcfd4773831c416651089efc7..86a1d1ff9c403352b202a5174c78fb0b3de3f5bc 100644
--- a/sky/specs/modules.md
+++ b/sky/specs/modules.md
@@ -24,6 +24,7 @@ finished parsing, the document waits until its list of outstanding
dependencies is empty before the module it represents is marked
complete.
+
Module API
----------
@@ -47,6 +48,14 @@ its ```Module``` object. By default, the ```exports``` property of a
import is still useful (it exposes its contents, e.g. templates that
the import might have been written to provide).
+### Exporting element definitions ###
+
+When importing a module into another, Sky looks at the properties on
+the imported module's ``exports`` value, and for each property that is
+an element constructor (generated by ``registerElement()``), it adds
+an element to the importee's element registry.
+
+
Naming modules
--------------
« sky/specs/apis.md ('K') | « sky/specs/apis.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698