Activate vue.js and axios.js

Typemill uses the frontend-library Vue.js and Axios.js for http-requests. You can activate both for your theme like this:

  {{ content }}

  {% block javascripts %}

   <script src="{{ base_url }}/themes/yourtheme/js/my.js"></script>

   {{ assets.activateAxios() }}
   {{ assets.activateVue() }}
   {{ assets.renderJS() }}

 {% endblock %}   

Axios will be instanciated with the variable myaxios with the base-url that is needed for axios.

Typemill is an open source software and a registered trademark. Read more