Yes, by getting them from the template context directly (it's a service).