How can a Sublime Text build system access the contents of a buffer, not a file?
Let's say I open a new buffer in Sublime Text 3 (ST3); how can I access the contents of that buffer from my build system? i.e. Let's say I have a build system that will run a file thorough node —in that case I can simply use $file , but as far as I can tell, there is no build system variable for the current buffer's contents. Is there any way to pull the contents of the currently selected, unsaved buffer into a build process? To do this you will need to write a custom plugin to perform the build process, then add "target": "my_plugin_class" to your .sublime-build file instead of the standard