I am building a template engine with the concept that i learnt from http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1433&lngWId=8 in my web application.
I realized that it is not a very efficient way of doing template engine due to the usuage of file_get_contents. It will cost loading times.
Anyone here can offer any experts on how i can not use file_get_contents?
My magic crystal ball tells me that you are loading the templates through urls.
Stop doing that. It’s slow.
Use local filesystem paths.