compojure like http routes for newlisp?

Q&A's, tips, howto's

compojure like http routes for newlisp?

Postby jopython » Sun Oct 02, 2016 10:17 pm

I am trying to run newlisp behind inetd in -http mode with http-conf.lsp example provided in the manual.
The example provided in the manual is very limited and it exposes the entire newlisp interpreter to the http port which I find a security issue. I wish we had clojure compojure like routes DSL for newlisp.

Code: Select all
(defroutes home-routes
  (GET "/" [] (home-page))
  (GET "/hello/:name" [name] (str  "Hello " name))
  (GET "/about" [] (about-page)))


Nice thing about compojure is that it exposes only these routes and nothing but these routes. Is there a DSL similar to this for newlisp and easy to use?
jopython
 
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

Re: compojure like http routes for newlisp?

Postby TedWalther » Tue Oct 04, 2016 12:55 am

If someone codes one up, I'll use it.

Although I'm more interested in FastCGI support in newlisp, then I can use newlisp to power a website using OpenBSD's small/secure new webserver. As well as Apache/nginx and all the other mainstream web servers.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.
TedWalther
 
Posts: 605
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 2 guests