Re: Questions about the Enlive template library

2009-02-13 Thread Tom Hickey
Hi Christophe, I was not on the latest version (and I now know that the "download" button on github does not necessarily give you the latest!). I am now seeing the differences in output on descendent updates. I understand about only one rule being applied, and the warning definitely helps to see

Re: Questions about the Enlive template library

2009-02-13 Thread Christophe Grand
Hi Tom, Tom Hickey a écrit : > Snippets > I think what you have suggested for snippets sounds perfect. > I added defsnippet and defsnippets. > Setting content & escaping > Thanks you for explaining the cases here. Having a better idea of what > to expect will help in testing further. (I'm s

Re: Questions about the Enlive template library

2009-02-12 Thread Tom Hickey
After just having a quick discussion with Rich I think the specificity discussion threw me off with regards to the functional aspect of the templates transforming the document. I'm definitely munging the two together in my examples and, at the time, my expectations. But I think I have a better id

Re: Questions about the Enlive template library

2009-02-12 Thread Tom Hickey
Hi Christophe, Thank you for the quick reply! Snippets I think what you have suggested for snippets sounds perfect. Using [selector to single out this snippet] from within a file is definitely way better then what I was envisioning. I think having the ability to define a single snippet as well a

Re: Questions about the Enlive template library

2009-02-12 Thread Christophe Grand
Christophe Grand a écrit : > Tom Hickey a écrit : > >> What about grouping selectors? >> > Patch welcome :-) > Done. #{[selector1] [selector2]} is selector1, selector2 I also added selector-steps union: [#{:h1 :h2 :h3} :a] is h1 a, h2 a, h3 a Christophe -- Professional: http://cgra

Re: Questions about the Enlive template library

2009-02-12 Thread Christophe Grand
Christophe Grand a écrit : > Universal and attribute selectors can be easily added. > I added :* (universal), attr= and attr? [:body :> :*] ; body > * [[:a (attr= :href "http://google.com";)]] ; a[href="http://google.com";] [[:a (attr? :href)]] ; a[href] >> 4) Attributes >> Do you hav

Re: Questions about the Enlive template library

2009-02-12 Thread Christophe Grand
Hi Tom! Thanks for your interest in Enlive. Tom Hickey a écrit : > I am trying out Enlive and had some questions regarding it's feature > set and your future plans in terms of functionality. > I grow it as I go: I haven't a clearly outlined future features list (I'm thinking about JS/jQuery

Questions about the Enlive template library

2009-02-11 Thread Tom Hickey
Hi Christophe, I am trying out Enlive and had some questions regarding it's feature set and your future plans in terms of functionality. 1) Component Templates I was wondering if you had any plans to support component templates? I.e., templates that represent just a portion of a page (via an htm