Outputting results in a new pane similar to markdown preview


#1

Greetings,

This is a development related question, I am curious as to how to simply output the contents of some function or service to a new pane in atom similar to how the markdown preview package does it.

Any pointers in the right direction would be a great help.

-V/R

Ryan


#2

The short answer is that it depends on what you want to output. Atom has no standard framework for handling views, so anything can be used that suits your needs. If you just want to output a table of data, you might be able to get by with straightforward DOM manipulation. I’m not an expert on view frameworks, but for a newbie, Etch is probably the best place to start, as something with a low learning curve that mostly seeks to minimize the amount of messing with the DOM you have to do.

Now, for the second part of the question, we can look at markdown-plus to observe how it creates its pane. It starts with @toggle.