We are using StringTemplate's ability to search the classpath. That  
way, finding templates is just as easy (!?) as getting the classpath  
right for executable bits. I believe this is the right approach for  
production in the Java world.

Cheers,
Stu

> Hello,
>
> I am using StringTemplate with Clojure here and I have this issue with
> setting the template path for StringTemplate.
>
> I don't want to hard code the absolute path in the code, and thus I  
> have
> used a relative path for the template directory.
>
> But every time I have to cd (I use SLIME) to the root of the relative
> path before using any of the templates.
>
> It might work on a dev environment, but I am sure it will be  
> problematic
> in production.
>
> If any of you have used ST before, it would be great if you share your
> solution to the problem.
>
> Any generic solution of managing settings in runtime will also be
> appreciated.
>
> Regards,
> BG
>
> -- 
> Baishampayan Ghose <b.gh...@ocricket.com>
> oCricket.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