title: Invoking custom javascript functions in clojurescript
body: <p>My <strong>project.clj</strong> is as follows : </p>
  
  <pre><code>(defproject cljsbuild-example-simple "0.3.2"
    :description "A simple example of how to use lein-cljsbuild"
    :source-paths ["src-clj"]
    :dependencies [[org.clojure/clojure "1.5.1"]
                   [compojure "1.0.4"]
                   [hiccup "1.0.0"]]
    :plugins [[lein-cljsbuild "0.3.2"]
              [lein-ring "0.7.0"]]
    :cljsbuild {
      :builds [{:source-paths ["src-cljs"]
                :compiler {:output-to "resources/public/js/main.js"
                           :libs ["src-js/jsfuncs.js"]
                           :optimizations :whitespace
                           :pretty-print true}}]}
    :ring {:handler example.routes/app})
  </code></pre>
  
  <p><strong>jsfuncs.js</strong> contains the following code : </p>
  
  <pre><code>function calculate(a,b,c) {
      d = (a+b) * c;
      return d;
  }
  </code></pre>
  
  <p><strong>How do I invoke this js function from within the clojurescript files?</strong> I tried to invoke this function via : </p>
  
  <pre><code>(js/calculate 4 5 6)
  </code></pre>
  
  <p>But this did not work. Thanks.</p>