Hello

I'm currently playing with closure-templates, and have one question - to
load template, i need to create instance of class, that is internal class
of another java class:

in java example there is following code

SoyFileSet sfs = (new SoyFileSet.Builder()).add(new File("simple.soy")).build();

I'm trying to use following Clojure code:

(ns hello-world
    (:import com.google.template.soy.SoyFileSet))

(let [sfs (doto (new SoyFileSet.Builder)
              (.add (File. "hello_world.soy"))
              (.build))]


but has no success - i tried to import explicitly via (:import
com.google.template.soy.SoyFileSet.Builder), but only get
java.lang.ClassNotFoundException

How to properly create such instances?

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/           http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to