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

Unified Diff: mojo/public/tools/bindings/generators/js_templates/module.html.tmpl

Issue 643323002: [Mojo] Add support for HTML imports as well as AMD modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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
Index: mojo/public/tools/bindings/generators/js_templates/module.html.tmpl
diff --git a/mojo/public/tools/bindings/generators/js_templates/module.html.tmpl b/mojo/public/tools/bindings/generators/js_templates/module.html.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..d6d82ce9d8c5a1aaeb22c563369f9402ce2c46a8
--- /dev/null
+++ b/mojo/public/tools/bindings/generators/js_templates/module.html.tmpl
@@ -0,0 +1,13 @@
+<!-- Copyright 2014 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file. -->
+
+<link rel="import" href="//mojo/public/js/bindings/codec.html" as="codec" />
+<link rel="import" href="//mojo/public/js/bindings/validator.html" as="validator" />
+{%- for import in imports %}
+<link rel="import" href="//{{import.module.path}}.html" as="{{import.unique_name}}" />
+{%- endfor %}
+<script>
+{%- include "module_definition.tmpl" %}
+ this.exports = exports;
+</script>

Powered by Google App Engine
This is Rietveld 408576698