I'm bulding a website in Django 1.3
One of my views is a complex HTML that repeats a lot ( an image gallery with some nested s )
Is there a way to put that logic in a separate file? and call it from django?
Note: Maybe there is a way to do this in HTML and this question may not be related to django. Note2: I found this other thread which was about calling django's function from a template, using this maybe I could use "render_to_response" function to load the inner HTML.
The purpose of this is to have separated logics for different components.