include global data in content(). Fixes #2
custom functions can be added. Closes #1