So if you have an arbitrary number of files in said resources directory, is 
there a good way to find all files underneath a certain resource path?
if I have "resources/foo.txt" and "resources/bar.txt", what function would 
I use to exact both names of the txt files I have?

Thanks in advance,
-Chris

On Thursday, September 13, 2012 3:02:09 AM UTC-7, Murtaza Husain wrote:
>
>
> A good use case - You want to place html files, that can be processed in 
> your server side code. Inorder for your code to have access to it, you will 
> have to place them in the src dir. However if you use the :resource-path, 
> you can define a dir relative to the root of your project where you are 
> placing your html files. 
>
> I recently used them to place my html files in resource/public/templates 
> folder, when using enlive for processing html files. 
>
> On Monday, September 10, 2012 9:35:56 PM UTC+5:30, Phil Hagelberg wrote:
>>
>> larry google groups <lawrenc...@gmail.com> writes: 
>>
>> > I see this: 
>> > 
>> > :resource-paths ["src/main/resource"] ; non-code files included in 
>> > classpath/jar 
>> > 
>> > I am confused in 2 ways: 
>> > 
>> > 1.) is this a break from java conventions? I thought Java projects 
>> > tended to put a "resources" folder at the top level of a project, 
>> > rather than inside of src? 
>>
>> The top-level resources/ is what you get by default; the sample 
>> project.clj file just shows you what it would look like if you were to 
>> change it. Personally I'm not a fan of the paid-by-the-directory deep 
>> nesting approach, but it's shown there because it's the only other 
>> common convention. =) 
>>
>> -Phil 
>>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to