def preBuildPage(page, context, data):
 extra = {'CURRENT_PAGE': page}
 context.update(extra)
 return (context, data)

def preBuildPage ( page , context , data ) : extra = { 'CURRENT_PAGE' : page } context . update ( extra ) return ( context , data )
called prior to building a page .