Fixed syntax error in router
Added template precompilation