amber use with other programming languages (clojure on the backend)

46 views
Skip to first unread message

Chris Zheng

unread,
Oct 13, 2012, 7:12:13 PM10/13/12
to amber...@googlegroups.com
I'm developing mainly in clojure and I would love to be able to use amber to develop the web front end to my applications. I was hoping to get some information as to how the compilation process works and what web api methods I need to implement to get an amber environment working with ring - https://github.com/mmcgrana/ring - the clojure http server.

Chris Zheng

unread,
Oct 13, 2012, 11:30:26 PM10/13/12
to amber...@googlegroups.com
Actually, it turned out to be much easier than i thought...

all the client end is doing when I press 'commit' in the browser is to do a put request to url of the file to be saved and the the contents of the file in the body. I just needed to capture the request and save the files to the right spot on disk.

for those that may be interested, the files are at


to start, in command prompt:

    lein run

then browse to localhost:4000/projects/hello

Nicolas Petton

unread,
Oct 14, 2012, 10:13:00 AM10/14/12
to Chris Zheng, amber...@googlegroups.com

Nice :)
I'm watching the project on github.

Nico
--
Nicolas Petton
http://nicolas-petton.fr

Chris Zheng

unread,
Oct 16, 2012, 1:10:41 AM10/16/12
to amber...@googlegroups.com, Chris Zheng
I've added an example for use with knockoutjs... its a little awkward but it does the job.  Amber is seriously fun!
Reply all
Reply to author
Forward
0 new messages