I have a mini box that pops up when hovered to reveal profile information(constantly being hidden). It\'s working due to a template include:
{% for i in leftbar_
I want to add some conditions and pull other information... for instance: check if they can be messaged. pull that specific profiles friend count
Sounds like your are looking for a template tag, for an inclusion tag, to be more specific.
So you can put the (python/view) logic in your tag and render the appropiate html similiar to your include.