Add support for imports variables in templates