def if_current_page(context, link_url, positive=True, negative=False):
 page = context['__CACTUS_CURRENT_PAGE__']
 return (positive if (page.link_url == link_url) else negative)

def if_current_page ( context , link_url , positive = True , negative = False ) : page = context [ '__CACTUS_CURRENT_PAGE__' ] return ( positive if ( page . link_url == link_url ) else negative )
return one of the passed parameters if the url passed is the current one .