Inside the {% graph %} tags you just need to place valid JSON that can be passed in as the function-plot options

Future Work

function-plot is a browser only library and is not compatible with being used within node. So ebook rendering at this point won't be possible. I'm sure there are ways around it using something like phantom, but for now I've taken the naiive approach and made it work within the browser.