Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 {%- if args["module"] -%} | |
2 {%- for module_name, script in modules -%} | |
3 require.modules[{{ module_name|json }}] = function(module, exports) | |
4 { | |
5 {{ script }} | |
6 return module.exports; | |
7 }; | |
8 | |
9 {% endfor -%} | |
10 {%- for module_name in args["autoload"] -%} | |
11 require({{ module_name|json }}); | |
Wladimir Palant
2016/11/30 14:54:44
It's probably a good idea to check first whether t
kzar
2016/11/30 15:26:18
Done.
| |
12 {% endfor %} | |
13 {%- else -%} | |
14 {%- for module_name, script in modules -%} | |
15 {{ script }} | |
16 {% endfor -%} | |
kzar
2016/11/30 14:29:45
`{%` not `{%-` so that the require calls are separ
| |
17 {%- endif -%} | |
OLD | NEW |