Hi. I am looking for some advice on the best way to approach the following:
I am pulling my blog posts out of my db. Inside of the posts I want to use an image scroller ( http://cssdeck.com/labs/css3-image-slider ), but I don't want to write all of the boilerplate surrounding each image every time.
The idea I have is a template filter.... but that just seems wrong. What's the proper way to handle this?
Ideally, I would just add some bit in my post like css_slider({loc: loc_pic_1, desc: "blah blah"}, {loc: loc_pic_1, desc: "blah"}...)
-- I am pulling my blog posts out of my db. Inside of the posts I want to use an image scroller ( http://cssdeck.com/labs/css3-image-slider ), but I don't want to write all of the boilerplate surrounding each image every time.
The idea I have is a template filter.... but that just seems wrong. What's the proper way to handle this?
Ideally, I would just add some bit in my post like css_slider({loc: loc_pic_1, desc: "blah blah"}, {loc: loc_pic_1, desc: "blah"}...)
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d38e2a00-5ae9-4e8e-8333-0677cc206a5e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment