How to build the atom package VIEW by parsing an HTML template?


#1

It is really boring and time-consuming to write a piles of DOM code to build up a complex view during the development of an atom package. So I have tried to parse the view from a html template using DOMParser, but it didn’t work. The error message is “Can’t create a view for Element instance. Please register a view provider”.

Anyone have similar ideas or problems? How to do it? Thanks :smile:


#2

There are a number of suggestions here:


#3

Thank you. It’s definitively what I want. I have successfully built the view from the html template by using Vue. Thanks again! :grin: