Turns out the same techinique as https://github.com/docpad/docpad-plugin-haml/commit/0142d04a263fd5d1a905f342cb96ee7f61f8f3d0 also works for template helpers - ref #2