Web Framework

Q&A's, tips, howto's
Locked
ockhamwasright
Posts: 1
Joined: Mon Apr 13, 2009 7:21 pm

Web Framework

Post by ockhamwasright »

I just picked up newLISP a couple of weeks ago and it is absolutely the coolest thing ever. I expected it to be powerful but rather clunky based on my experience with Common Lisp many years ago. What a wonderful surprise - full of stunningly clever implementations of remarkably good ideas.

I have a couple of small web projects that I'd ordinarily use python / web2py for but I would like to try at least one of them with newLISP - partly because I'd like to gain more experience with this great language, and partly because I think it would be a lot more fun.

Are there any web frameworks (like Rails for Ruby, or Django or web2py for Python) available for newLISP?

I would appreciate any help. Thanks for your thoughtful consideration.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

There is no complete framework yet, but there are several modules available for different aspects of web programming, all accessible from here:

http://www.newlisp.org/modules/

an on this page you find a Web section with smaller examples:

http://www.newlisp.org/index.cgi?Tips_and_Tricks

sourcecode for two complete web applications can be found here:

http://www.newlisp.org/index.cgi?Applications

ps: welcome to newLISP

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

Everybody does their own thing at the moment. Because newLISP encourages exploration and experimentation, I'm not sure whether many of us want to 'adopt' a standard framework - it's much more fun (and instructive) re-inventing the wheel to your own design, than simply using someone else's... :)

Jeff's written useful web-related modules; Lutz's wiki is clever and compact; Fanda's newlispweb system is an elegant way of publishing small web sites; Didi's ShortNotizer is also intriguing. The newlisp-on-noodles project was originally intended to build such a framework, too, but sadly it didn't get much past the setting-up stage. Search this forum for more info...

I'm on my second blogging application - trying out various ideas while trying to learn something about cgi/web stuff. I'm not really sharing my code at the moment, though, since I don't understand it myself yet!

hilti
Posts: 140
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany
Contact:

Post by hilti »

The "Dragonfly web framework" is my attempt for newLISP.

Here are the links to the blog
http://dragonfly-newlisp.blogspot.com/

and the project on Google Code
http://code.google.com/p/dragonfly-newlisp/

Your feedback is welcome. Have fun!

hilti
--()o Dragonfly web framework for newLISP
http://dragonfly.apptruck.de

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

This is great. One problem: although I can load the page, there are no styles or Javascript.... This is after running:

Code: Select all

sudo newlisp -http -d 85 -w /Users/me/Sites/newlisp_financier
But I can see the styles etc if I modify templates/partials/header.tpl to contain this:

Code: Select all

(Dragonfly:css "screen" "/css/screen.css") % 
(Dragonfly:css "screen" "/css/panel.css") % 
(angle brackets omitted for forum) instead of the lines with two dots... Why is this?

hilti
Posts: 140
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany
Contact:

Post by hilti »

Sorry for that bug. My styles came from safari cache, so I didn't notice the problem. I fixed it.

Thanks cormullion for mention it. Your path is correct.

Cheers
hilti
--()o Dragonfly web framework for newLISP
http://dragonfly.apptruck.de

Locked