« Sumo match-fix scandal and Freakonomics | Main | Stephen Hawking: "We should seek the greatest value of our action" »

Feb 09, 2011

Comments

Yann

You should link to microsoft CDN rather than to github (official sponsor of jquery-tmpl), that would be nicer to github servers :)

Masayoshi Sekimura

@Yann done. Thanks for the heads up!

Yann

something is puzzling me... how do you get the body of the posts to render? your template only output its title and permalink. Magic! (it's be a bit faster to compile entry-tmpl once btw)

Martin Atkins

This is neat! But I think it will have problems if a new entry is posted while scrolling, since it'll knock the item indices off by one. You could work around this by keeping track of which entry ids you've already rendered and ignoring any that repeat when you get the next page.

Of course, this doesn't fix deleting an entry or reordering entries, but hopefully those are less common operations. It's a shame we don't have a stream interface for blog content.

Masayoshi Sekimura

@Yann (hello again) I was using jQuery.append() to add an entry content. But, I've just updated the template and js file by using {{html variable}} syntax. Now it won't make you puzzled. And as I said, tmpl() method is smart and it caches compiled templates.

@Mart I'm waitng for the stream interface then. :)

ground penetrating radar

Just wondering how we get the body of our posts to render? can you please explain it a bit more so it can be easy to understand.

Frank Baier

your template only output its title and permalink. Magic! (it's be a bit faster to compile entry-tmpl once btw)

tom

Gnybtas1

rankines internetu

Tanks for helping.

The comments to this entry are closed.