Re: Dealing with edn for the first time

2014-04-20 Thread Mark Mandel
I wrote a blog post a while back on working with EDN, which could be helpful: http://www.compoundtheory.com/clojure-edn-walkthrough/ >From there, fire up a REPL, load in clojure.edn, and start converting vectors and maps to EDN and see what the format looks like :) Mark On Mon, Apr 21, 2014 at

Re: Dealing with edn for the first time

2014-04-20 Thread Mike Haney
Found the project I lifted my config code from, it's this one: https://github.com/bellkev/dacom Look through that, it should give you a good starting point. If you still have questions, feel free to ask and we'll try to help. -- You received this message because you are subscribed to the Goo

Dealing with edn for the first time

2014-04-20 Thread Mike Haney
1. In its simplest form, EDN is just clojure data literals. So for simple cases like configuration, just use a map: { :database-uri "some-uri" :another-param "some value" :debug-mode true } 2. You can use clojure.java.io/resource to access resources, but for config files you usually don't

Dealing with edn for the first time

2014-04-20 Thread Hussein B.
Hi, I want to save the configuration of my application in edn file. Lein is used (of course). I want to pub my config.edn under /resources directory. But honestly, I don't know the format of edn. I tried to google it, but I didn't get anything helpful. The format is in its early stages. So, m