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 <javascript:>> 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