I am having a similar problem.
I am using the example code here
All I get back is the same text/code instead of rendered html page. See screenshot below
Am I doing something wrong?
- Grafana v6.0.1 (0c44a04)
Raspberry Pi : Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux