Actually propagate mode setting from the listen block
Merge pull request #26 from stylight/master

mode parameter from listen block now correctly appears in template