| Index: mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e830a844ebc9d1df34e25d9730b5cb20de7afdf7
|
| --- /dev/null
|
| +++ b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl
|
| @@ -0,0 +1,20 @@
|
| +// 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.
|
| +
|
| +define("{{module.path}}", [
|
| + "mojo/public/js/bindings/codec",
|
| + "mojo/public/js/bindings/validator",
|
| +{%- for import in imports %}
|
| + "{{import.module.path}}",
|
| +{%- endfor %}
|
| +], function(codec, validator
|
| +{%- for import in imports -%}
|
| + , {{import.unique_name}}
|
| +{%- endfor -%}
|
| +) {
|
| +
|
| +{%- include "module_definition.tmpl" %}
|
| +
|
| + return exports;
|
| +});
|
|
|