Searching the web for minimal clojurescript web app examples I see a number of 
interesting things but nothing quite as minimal as what I'm hoping for.

Suppose I have a Clojure/Clojurescript function "reply" that takes a single 
string argument and returns a string result. For the simplest case let's 
suppose that reply is purely functional, and that no state has to be shared 
between calls; e.g. maybe reply is just clojure.string/reverse.

I'm looking for the simplest way to put this function on the web with a page 
that contains just: 1) a field into which one can type the input string, 2) a 
button that one can press to run the function on the input string, and 3) an 
area where the result is displayed. I have a directory on a public server where 
I can put things (like html files and cgi programs) and make them accessible. 

Most examples I see (e.g. https://github.com/aiba/clojurescript-chat-example) 
seem to be geared toward applications that can do a lot more than what's needed 
here, and involve several libraries and web programming concepts that I'd 
prefer to avoid at this juncture. I'd just like to take this string-processing 
function and make it available to browsers with a minimal interface on a page, 
preferably from my existing server, with as little work and ceremony as 
possible.

Does anyone know of a blog post or other example or tutorial that would show me 
how to do this in a really minimal way?

If I can do this then the one further step I'd like to take is to pass state 
from one call to the next, but I'd be reasonably happy if this were done in a 
pretty clunky way like by spitting and slurping files.

Thanks for any pointers that anyone can provide.

 -Lee


-- 
-- 
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/groups/opt_out.


Reply via email to