Reputation: 95
I know it is possible to just copy index.html generated by Svelte and use it as a template, but I have a few questions:
Is there a plugin that eases up the process?
Where do I put the CSS and bundle.js files?
Is it even advisable to use these two together?
Upvotes: 3
Views: 6433
Reputation: 616
I've put together a package for integrating Svelte and Django: django-svelte
You still have to be responsible for building the bundle and ensuring that django knows where the bundle can be found. django-svelte provides a templatetag for referencing the bundle and a template for the Svelte environment.
Upvotes: 3
Reputation: 2047
You can find an example here: https://github.com/cdrappi/django-svelte
Upvotes: 3