File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<body >
11
11
<div id =" react-app" ></div >
12
- {{ render_bundle('main', 'js') }}
12
+ {{ render_bundle('main', 'js', attrs='async charset="UTF-8"' ) }}
13
13
{{ render_bundle('app2', 'js', 'APP2') }}
14
14
</body >
15
15
</html >
Original file line number Diff line number Diff line change @@ -142,8 +142,8 @@ def test_jinja2(self):
142
142
with self .settings (** settings ):
143
143
request = self .factory .get ('/' )
144
144
result = view (request )
145
- self .assertIn ('<link type="text/css" href="/static/bundles/styles.css" rel="stylesheet"/>' , result .rendered_content )
146
- self .assertIn ('<script type="text/javascript" src="/static/bundles/main.js"></script>' , result .rendered_content )
145
+ self .assertIn ('<link type="text/css" href="/static/bundles/styles.css" rel="stylesheet" />' , result .rendered_content )
146
+ self .assertIn ('<script type="text/javascript" src="/static/bundles/main.js" async charset="UTF-8" ></script>' , result .rendered_content )
147
147
148
148
def test_reporting_errors (self ):
149
149
#TODO:
Original file line number Diff line number Diff line change 1
1
__author__ = 'Owais Lone'
2
- __version__ = '0.3.1 '
2
+ __version__ = '0.3.2 '
3
3
4
4
default_app_config = 'webpack_loader.apps.WebpackLoaderConfig'
You can’t perform that action at this time.
0 commit comments