I just found the following code in https://home-assistant.io/getting-started/automation-templating/#available-trigger-data.
{{ trigger.topic.split('/')[-1] }}
What languages syntax does it use, and where can i find a list of functions and descriptions that i can use?
cheers,