I’ve been creating my own template engine, to get an understanding of how to do it myself. I have the basics down, but there’s one seemingly simple concept I can’t figure out: blocks.
Blocks allow for the reuse of code in a template file. I have ideas on how to set up a template block in a template file, but I DON’T know how to read the block such that I can use the code repeatedly as a block is suppose to allow.
I’ve been looking over how phpBB does it in their engine, but due to how… complicated it is in their system is, along with my lack of experience working with their code, I can’t follow it enough to get all the details out.
Rather then have code to link and try and get fixed (Since I have no such code), I’d like to find out if anyone has experience with template blocks such that they can help me figure out what I’m suppose to be doing. At this point, this has been frustrating me for two months now and I’m getting tired of it.