Chromium Code Reviews| 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..b3c4e8900933b2690451921a11914d6729960cbc |
| --- /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 |
|
hansmuller
2014/10/10 22:55:31
We haven't been completely consistent about this h
abarth-chromium
2014/10/10 22:57:55
Fixed.
|
| +{%- for import in imports -%} |
| + , {{import.unique_name}} |
| +{%- endfor -%} |
| +) { |
| + |
| +{%- include "module_definition.tmpl" %} |
| + |
| + return exports; |
| +}); |