$def with (work, link_text, id, classes='', reload_id=None) $ username = ctx.user and ctx.user.key.split('/')[-1] $ context = { $ "username": username, $ "work": work.key, $ "id": id $ } $if reload_id: $ context['reloadId'] = reload_id