Did you add the repo-locations?See here documentation what you need to add: https://docs.adobe.com/docs/en/aem/6-2/develop/dev-tools/ht-projects-maven.html
[Edited by kautuk]HTML Template Language (formerly known as Sightly) is parsed only serverside, if you need pass something you need to do it via url-params.