example/templates/index.html
raw| 1 | <!DOCTYPE html> |
| 2 | {% load static %} |
| 3 | <html> |
| 4 | <head> |
| 5 | <title>django-yarnpkg demo</title> |
| 6 | <script type="text/javascript" src='{% static 'jquery/dist/jquery.js' %}'></script> |
| 7 | <script type="text/javascript" src='{% static 'underscore/underscore.js' %}'></script> |
| 8 | <script type="text/javascript"> |
| 9 | $(function(){ |
| 10 | $('body').append('<p>jquery work</p>'); |
| 11 | |
| 12 | if (_) { |
| 13 | $('body').append('<p>underscore work</p>'); |
| 14 | } |
| 15 | }); |
| 16 | </script> |
| 17 | </head> |
| 18 | <body> |
| 19 | </body> |
| 20 | </html> |