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


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:


There are a number of suggestions here:


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