Make template routing work

Signed-off-by: Ian Macalinao <me@ian.pw>