Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
Submodule combust
updated
4 files
+10 −0 | apache/root_templates/tpl/combust_defaults | |
+4 −0 | dist.ini | |
+19 −17 | lib/Combust/Control/API.pm | |
+1 −1 | lib/Combust/Template.pm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[% | ||
|
||
MACRO show_js(list_js_files) BLOCK; | ||
Dumper.dump(list_js_files); | ||
IF list_js_files && list_js_files.list && list_js_files.list.size; | ||
FOR js_elem = list_js_files.list; | ||
FOR js = js_elem.list; | ||
IF !unique_js.${js}; | ||
IF js.match('^https?://'); | ||
jspath = js; | ||
ELSIF js.match('^//'); | ||
jspath = js; | ||
ELSIF js.match('^/'); | ||
jspath = combust.static_url(js) || js; | ||
ELSE; | ||
jspath = combust.static_url("/js/${js}") || "/js/${js}"; | ||
END; | ||
|
||
%]<script type="text/javascript" src="[%- jspath -%]" charset="UTF-8"></script> | ||
[% | ||
|
||
unique_js.${js} = 1; | ||
END; | ||
END; | ||
END; | ||
END; | ||
END; # END BLOCK | ||
|
||
show_js(js_files); | ||
|
||
%] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters