From lispercat at gmail.com Sat Apr 14 19:35:44 2007 From: lispercat at gmail.com (Andrei Stebakov) Date: Sat, 14 Apr 2007 15:35:44 -0400 Subject: [cl-emb-devel] Integrating with Apache and Hunchentoot Message-ID: I am wondering how the cl-emb can be integrated with static html pages generated by Apache or dynamic generated with Hunchentoot? Does it work in the same way as embedded PHP? How the page with cl-emb gets generated with Apache? Thank you, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From sscholl at common-lisp.net Mon Apr 16 09:29:02 2007 From: sscholl at common-lisp.net (Stefan Scholl) Date: Mon, 16 Apr 2007 11:29:02 +0200 Subject: [cl-emb-devel] Integrating with Apache and Hunchentoot In-Reply-To: References: Message-ID: <20070416092902.GJ7371@parsec.no-spoon.de> Hi! On 2007-04-14 15:35:44, Andrei Stebakov wrote: > I am wondering how the cl-emb can be integrated with static html pages > generated by Apache or dynamic generated with Hunchentoot? > Does it work in the same way as embedded PHP? How the page with cl-emb gets > generated with Apache? CL-EMB "just" transforms text. template + some data = new text It can be used stand-alone, without any relation to the web. In order to get CL-EMB's output to the browser, you need to call it from within your favorite web framework/tool and feed the results the way (stream, string) it's needed. CL-EMB isn't PHP. You could compare it to one aspect of PHP: templating and embedding code into text files. CLHP wants to be more like PHP. But the project seems to be a bit more quiet than CL-EMB. If you like Hunchentoot you could modify the test code and replace CL-WHO with CL-EMB, just to get a feel how to work this way. There's some code in CL-WIKI that uses CL-EMB, too. But I don't know if it's working with Hunchentoot. Regards, Stefan