Call function on page change

Thanks @jordan.vidrine for reply. I will check these resources. One other question, maybe more related to Dockerized version. Is there any best practice for editing files inside the container? May I just “get” into the container modify files and restart it?