Re: Web Development - templating?

2010-10-02 Thread Ilia Ablamonov
It's very simple, you only need to 1. create a directory with all needed templates 2. (fleet-ns templates path/to/that_dir [:fleet :xml]) 3. use templates.* functions just as any other Give it a try :) On Sep 2, 1:39 am, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Sep 1, 2010 at 2:14

Re: Web Development - templating?

2010-09-02 Thread Sean Corfield
On Wed, Sep 1, 2010 at 5:41 AM, Remco van 't Veer rwvtv...@gmail.com wrote: If you want something old school like CFML you might consider using plain JSP and taglibs.  These are modeled after CFML and available on every web container by default. FWIW, I've created a small CFML/Clojure bridge

Web Development - templating?

2010-09-01 Thread Sean Corfield
This may be better suited for the new clojure-web-dev list but I'm used to building web apps with primarily HTML views that have some embedded scripting. Is there anything similar for Clojure? So far, all the web frameworks I've seen mentioned in Clojure seem to expect you to write some sort of

Re: Web Development - templating?

2010-09-01 Thread Meikel Brandmeyer
Hi, On 1 Sep., 09:09, Sean Corfield seancorfi...@gmail.com wrote: So far, all the web frameworks I've seen mentioned in Clojure seem to expect you to write some sort of HTML markup in Clojure itself... I have good experiences with enlive[1]. There you write your templates in normal HTML files

Re: Web Development - templating?

2010-09-01 Thread Laurent PETIT
2010/9/1 Sean Corfield seancorfi...@gmail.com On Wed, Sep 1, 2010 at 12:16 AM, Meikel Brandmeyer m...@kotka.de wrote: I have good experiences with enlive[1]. There you write your templates in normal HTML files and modify them from Clojure via CSS-style selectors. That's pretty horrible.

Re: Web Development - templating?

2010-09-01 Thread Shantanu Kumar
On Sep 1, 12:24 pm, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Sep 1, 2010 at 12:16 AM, Meikel Brandmeyer m...@kotka.de wrote: I have good experiences with enlive[1]. There you write your templates in normal HTML files and modify them from Clojure via CSS-style selectors.

Re: Web Development - templating?

2010-09-01 Thread Tim Clark
On Sep 1, 10:06 am, Shantanu Kumar kumar.shant...@gmail.com wrote: On Sep 1, 12:24 pm, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Sep 1, 2010 at 12:16 AM, Meikel Brandmeyer m...@kotka.de wrote: I have good experiences with enlive[1]. There you write your templates in normal

Re: Web Development - templating?

2010-09-01 Thread Remco van 't Veer
On 2010/09/01 09:24, Sean Corfield wrote: On Wed, Sep 1, 2010 at 12:16 AM, Meikel Brandmeyer m...@kotka.de wrote: I have good experiences with enlive[1]. There you write your templates in normal HTML files and modify them from Clojure via CSS-style selectors. That's pretty horrible. I

Re: Web Development - templating?

2010-09-01 Thread Greg
You might be interested in this this project: http://github.com/brool/gulliver See this blog post for more info: http://www.brool.com/index.php/a-modest-proposal It's essentially PHP-ified web development for Clojure. - Greg On Sep 1, 2010, at 12:24 AM, Sean Corfield wrote: On Wed, Sep 1,

Re: Web Development - templating?

2010-09-01 Thread Michael Ossareh
I highly recommend using Google Closure Templates. Clojure's java interop lets you script up creating a page from the soy files very efficiently and quickly (yay clojure!!). Also the fact that you can run the templates on the server and client mean if your idea scales up you can XHR data to and

Re: Web Development - templating?

2010-09-01 Thread Sean Corfield
On Wed, Sep 1, 2010 at 12:33 AM, Laurent PETIT laurent.pe...@gmail.com wrote: Can you expand your thoughts ? Sure :) But I just read the link Greg posted about Gulliver and that's pretty much what I was thinking about. Some approaches to generating web apps in some languages / framework lean

Re: Web Development - templating?

2010-09-01 Thread Laurent PETIT
2010/9/1 Sean Corfield seancorfi...@gmail.com: On Wed, Sep 1, 2010 at 12:33 AM, Laurent PETIT laurent.pe...@gmail.com wrote: Can you expand your thoughts ? Sure :) But I just read the link Greg posted about Gulliver and that's pretty much what I was thinking about. Some approaches to

Re: Web Development - templating?

2010-09-01 Thread gary ng
On Wed, Sep 1, 2010 at 11:58 AM, Laurent PETIT laurent.pe...@gmail.com wrote: The ideal setup, in my opinion, after using all sorts of different web frameworks and languages over the last 14 years, is to have all the HTML in the template - code never generates HTML - and to have *some* markup

Re: Web Development - templating?

2010-09-01 Thread Saul Hazledine
On Sep 1, 7:57 pm, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Sep 1, 2010 at 12:33 AM, Laurent PETIT laurent.pe...@gmail.com wrote: The ideal setup, in my opinion, after using all sorts of different web frameworks and languages over the last 14 years, is to have all the HTML in the

Re: Web Development - templating?

2010-09-01 Thread Saul Hazledine
On Sep 1, 9:09 am, Sean Corfield seancorfi...@gmail.com wrote: This may be better suited for the new clojure-web-dev list but I'm used to building web apps with primarily HTML views that have some embedded scripting. Is there anything similar for Clojure? Fleet is also worth mentioning as it

Re: Web Development - templating?

2010-09-01 Thread Sean Corfield
On Wed, Sep 1, 2010 at 1:26 PM, Saul Hazledine shaz...@gmail.com wrote: A good tutorial can be found at: http://github.com/swannodette/enlive-tutorial It was that tutorial that made me not want to use Enlive. Having *all* the code completely outside the template means a lot of extra work wiring

Re: Web Development - templating?

2010-09-01 Thread Sean Corfield
On Wed, Sep 1, 2010 at 2:14 PM, Saul Hazledine shaz...@gmail.com wrote: Fleet is also worth mentioning as it is an all Clojure solution that seems to follow the approach you are most comfortable with: http://github.com/Flamefork/fleet That looks very interesting, thanx Saul. The documentation

Re: Web Development - templating?

2010-09-01 Thread David Nolen
On Wed, Sep 1, 2010 at 5:32 PM, Sean Corfield seancorfi...@gmail.comwrote: On Wed, Sep 1, 2010 at 1:26 PM, Saul Hazledine shaz...@gmail.com wrote: A good tutorial can be found at: http://github.com/swannodette/enlive-tutorial It was that tutorial that made me not want to use Enlive. Having

Re: Web Development - templating?

2010-09-01 Thread Phil Hagelberg
On Wed, Sep 1, 2010 at 4:45 PM, David Nolen dnolen.li...@gmail.com wrote: While Enlive has it problems (not enough friendly error reporting about structural issues in the template, missing HTML files, etc.), I think it's pretty great leap forward for HTML templating. Agreed. I still get