A set of useful directive callbacks for page.js