title: How do I get the direct result of a simple clojurescript compilation?
body: <p>I want to be able to inject javascript code into my app while testing. Following this line of reasoning, I do the following in a repl.</p>
  
  <pre><code>=&gt; (cljs.closure/build '(swap! my-project.my-namespace.my-atom inc) {})
  &lt;= "goog.addDependency(\"base.js\", ['goog'], []);\ngoog.addDependency(\"../x8LL7.js\", [], []);"
  </code></pre>
  
  <p>I then </p>
  
  <pre><code>=&gt; more out/x8LL7.js 
  &lt;= cljs.core.swap_BANG_.call(null,my_project.my_namespace.my_atom,cljs.core.inc);
  </code></pre>
  
  <p>Yes, it appears that this is what I want. I could be mistaken, but I do not think I need the "base.js" dependency, as it is already included in the running app under test (which is using :simple :optimizations).</p>
  
  <p>My question is, how can I get the content of file <code>out/x8LL7.js</code>? I just want the string that is written to <code>out/x8LL7.js</code> as I have no use for the deps file string that is returned from <code>cljs.closure/build</code>. </p>
  
  <p>If it isn't easy, then I guess I can just parse the returned deps string, open the file myself and then use the content; not a big deal. Still, I was hoping there was a more direct way.</p>