[Vuejs]-Vue way of writing HTML as a string variable / string template

0👍

Have a look at: https://vuejsdevelopers.com/2017/03/24/vue-js-component-templates/

It does a good job of outlining your options. Your best choice is based on project needs of course.

Recently, I’ve used the X-Templates. It separates out the HTML content, which has its pros and cons:

  • Pro: designers can get to it with out messing with your code
  • Con: it’s another file to include and manage

X-Templates worked well for me and seems to handle larger HTML coding.

Leave a comment