Are there any events like that available? Couldn't find any info about that possibility in the documentation.
I am asking because I would like to remove all new lines from compiled template, obviously I wand to write readable .volt template but when it is compiled into php code and stored I want all new lines removed.
There is event in view that allows to modify the contents before it is rendered but that means the function would be running every time a page is accessed which is not needed in my case.
Any ideas how this could be done appreciated.