diff options
| author | Christophe Matthieu <chm@odoo.com> | 2018-04-23 10:08:00 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-06-15 08:42:15 +0200 |
| commit | 9cd982bcc811cacb42f5c08db139043d2734b891 (patch) | |
| tree | ca45b206dfdfa37cf5607175aad8016919581af9 /addons/website/tests/template_qweb_test.xml | |
| parent | b05e4d5f958892a9ff644b28a4ee165aeb2ea247 (diff) | |
[FIX] qweb: use cdn for asset files
Refactoring of qweb to call _post_processing_att for each nodes. This
change remove the crappy ovewrite in website module. The website overwrite
only the _post_processing_att to add the cdn parameters.
The static node (without t- attributes) can stay static (remove overwrite
of _is_static_node), the cdn is applied at the compile time for this
nodes instead of at the running time like the dynamic node.
Diffstat (limited to 'addons/website/tests/template_qweb_test.xml')
| -rw-r--r-- | addons/website/tests/template_qweb_test.xml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/addons/website/tests/template_qweb_test.xml b/addons/website/tests/template_qweb_test.xml new file mode 100644 index 00000000000..ad92b6966e6 --- /dev/null +++ b/addons/website/tests/template_qweb_test.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <template id="website.test_bundle"> + <script type="text/javascript" src="/web/static/lib/qweb/qweb2.js"></script> + <script type="text/javascript" src="http://test.external.link/javascript1.js"></script> + + <link rel="stylesheet" type="text/css" href="/web/static/lib/jquery.ui/jquery-ui.css"/> + <link rel="stylesheet" href="http://test.external.link/style1.css"/> + + <script type="text/javascript" src="/web/static/src/js/boot.js"></script> + <script type="text/javascript" src="http://test.external.link/javascript2.js"></script> + + <link rel="stylesheet" href="http://test.external.link/style2.css"/> + </template> + + <template id="website.test_template" name="test template 2"> +<!DOCTYPE html> +<html> + <head> + <t t-call-assets="website.test_bundle" t-js="False"/> + <meta/> + <t t-call-assets="website.test_bundle" t-css="False"/> + </head> + <body> + <img src="http://test.external.link/img.png"/> + <img src="/website/static/img.png"/> + <a href="http://test.external.link/link">x</a> + <a href="/web/content/local_link">x</a> + </body> +</html> + </template> + +</odoo>
\ No newline at end of file |
