DEV Community

Cover image for µTemplate : Vue3 without tooling, greatissime
artydev
artydev

Posted on

µTemplate : Vue3 without tooling, greatissime

Many developpers love Vue, but if you want to build an app, you have to deal with all the 'node toolset'.
What if you could the same without building tool ?

Documentation : µTemplate

You can test the demo here : Demo

<!-- the defined component -->
<the-green></the-green>

<!-- and its definition -->
<template is="uce-template">

  <style scoped>
  span { color: green }
  </style>

  <the-green>
    The <span>{{thing}}</span> is green
  </the-green>

  <script type="module">
  export default {
    setup() {
      return {thing: 'world'}
    }
  }
  </script>

</template>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)