This repository contains the Vue 2 implementation of Django-Silica. To see how to build a custom renderer, see the sample project. This repo is very much an in-progress project; to suggest changes or assist, please contact [email protected].
The easiest way to import silica-vue
over CDN is to use UNPKG. To do so, add the following script tag to any page
you want to use silica-vue
:
<script src="unpkg.com/silica-vue@VERSION/dist/silica-vue.umd.js"></script>
Note that silica-vue
only runs natively in browsers which support ES6 or higher. If you need to support legacy browsers
e.g. IE11, you should use any of the many tools available to transpile silica-vue.es.js
to a supported format. We
recommend babel and browserify.
You may choose to install silica-vue
as an NPM library and build it yourself before including it in your django static files. This is very simple:
- Run
npx vite build
- Copy
/dist/silica-vue.umd.js
to your project's static files folder - Import it as you would any other UMD library
There is a combined documentation repository for all Silica libraries located at Silica-Docs.