Django Template Blocks with extra functionality