I am using the lxml library to define a variable (category) in a view. lxml provides a method .get
to retrieve custom attributes. I\'d like to use it in the tem
I agree with the philosophy of separating logic from design, but there's an exception. I am currently writing a get_image(height=xxx, width=xxx) method for a model. Clearly, it should be up to the template designer to decide the size of the image as the last stage. Though I suppose the correct thing to do is write a custom tag, but why restrict?