I was thinking about an template engine that use "standard" php syntax but that escapes content and allow magic template functions like fatfree
The syntax basically will be.
Code Block(short open tags can be fixed when parsing).
Escape code block opening tag
Template Function
Suppress error
Echo
What i want with this is:
- Safety.
- Standard php syntax highlight works.
- Standard php autocomplete works.
- In my tests php linting works.
- When an error occurs, the line will match that of the template.
- With template functions you can avoid (but still can) writing boilerplate like "$this->func" and "\Namespace\Class::xxx".
- Because of the use of standard php syntax it dont break editor autocomplete when when you dont close all tags between control blocks like happens with the syntax of fatfree template class.
- fat free.
I'am not wanting to replace or add this to fatfree, just want to know what you think.