ckirkendall / enfocus

DOM manipulation and templating library for ClojureScript inspired by Enlive.
http://ckirkendall.github.com/enfocus-site/
370 stars 41 forks source link

Difference in ef/content behaviour #96

Closed dbushenko closed 10 years ago

dbushenko commented 10 years ago

Have a look at this code

(em/deftemplate page "/html/screens/list.html" [code] "#shop-list" (ef/content (map shop-item shop-items)))

It renders a list of items within the template. At least it should bcs it doesn't though the data in shop-items exists for the time when the function 'page' is called.

But if after that I call the following:

(ef/at "#shop-list" (ef/content (map shop-item shop-items)))

It works as expected.

Enfocus version used: 2.0.2, 2.1.0-SNAPSHOT.

ckirkendall commented 10 years ago

Is it possible for you to put together a repeatable example in a repo. I am not able to reproduce it on my end.

Creighton

On Sat, Jun 14, 2014 at 10:47 AM, dbushenko notifications@github.com wrote:

Have a look at this code

(em/deftemplate page "/html/screens/list.html" [code] "#shop-list" (ef/content (map shop-item shop-items)))

It renders a list of items within the template. At least it should bcs it doesn't though the data in shop-items exists for the time when the function 'page' is called.

But if after that I call the following:

(ef/at "#shop-list" (ef/content (map shop-item shop-items)))

It works as expected.

— Reply to this email directly or view it on GitHub https://github.com/ckirkendall/enfocus/issues/96.

ckirkendall commented 10 years ago

I closing this issue because I was not able to reproduce it.