OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 define("{{module.path}}", [ | 5 define("{{module.path}}", [ |
6 "mojo/public/js/bindings/codec", | 6 "mojo/public/js/codec", |
7 "mojo/public/js/bindings/validator", | 7 "mojo/public/js/validator", |
8 {%- for import in imports %} | 8 {%- for import in imports %} |
9 "{{import.module.path}}", | 9 "{{import.module.path}}", |
10 {%- endfor %} | 10 {%- endfor %} |
11 ], function(codec, validator | 11 ], function(codec, validator |
12 {%- for import in imports -%} | 12 {%- for import in imports -%} |
13 , {{import.unique_name}} | 13 , {{import.unique_name}} |
14 {%- endfor -%} | 14 {%- endfor -%} |
15 ) { | 15 ) { |
16 | 16 |
17 {%- include "module_definition.tmpl" %} | 17 {%- include "module_definition.tmpl" %} |
18 | 18 |
19 return exports; | 19 return exports; |
20 }); | 20 }); |
OLD | NEW |