Ok, so I'm making a template engine for my website. I have everything done, and I just have a few tags to add. Basically, in the template, I have tags like <if> and </if>, etc, and all the template engine does is replaces those tags with PHP code, then eval's the result. However, when I get to the eval function, it gives the error "Unexpected '<' in eval'd code on line 1". I replaces "eval" with "echo" to see the code I was passing through the eval function, but everything was fine, and there was no '<' on line 1...in fact, there was nothing on line 1. Any suggestions?
Thanks in advance!