forked from alihazemfarouk/django-webpack-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added tests for the new templatetag render_entrypoint
- Loading branch information
1 parent
bad972b
commit 83df98b
Showing
10 changed files
with
1,392 additions
and
1,206 deletions.
There are no files selected for viewing
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,14 @@ | ||
{% load render_entrypoint from webpack_loader %} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Example</title> | ||
{% render_entrypoint 'another_entrypoint' 'css' %} | ||
</head> | ||
|
||
<body> | ||
<div id="react-app"></div> | ||
{% render_entrypoint 'another_entrypoint' 'js' %} | ||
</body> | ||
</html> |
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,14 @@ | ||
{% load render_entrypoint from webpack_loader %} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Example</title> | ||
{% render_entrypoint 'main' 'css' %} | ||
</head> | ||
|
||
<body> | ||
<div id="react-app"></div> | ||
{% render_entrypoint 'main' 'js' %} | ||
</body> | ||
</html> |
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,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Example</title> | ||
{{ render_entrypoint('main', 'css') }} | ||
</head> | ||
|
||
<body> | ||
<div id="react-app"></div> | ||
{{ render_entrypoint('main', 'js', attrs='async charset="UTF-8"') }} | ||
</body> | ||
</html> |
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,5 @@ | ||
var React = require('react'); | ||
var App = require('./app'); | ||
var style = require('./style.css'); | ||
|
||
React.render(<App/>, document.getElementById('react-app')); |
Oops, something went wrong.