Ok, so this is exactly what it sounds, a generic syntax for templating that would specify a basic limited subset of operators (e.g. foreach, if, else). Basically an extended version of Mustache.
This sounds really weird, because usually syntax is the defining feature of a templating engine, so it feels wrong to come up with a generic one. But think of the possibilities:
- Language agnostic syntax would also allow rendering with js
- Easy to upgrade from one engine to another (people who have ported sites from Smarty to Twig know what I mean)
- Unlike logicless Mustache we can add features such as comparisons and other asy to implement operators that allow some logic
The important featres that must be in:
- Outputting (wee obviously)
- foreach loop
- if/elseif/else
- ternary operator
- regular for loop
- includes
- layouts
- blocks
- native calls (e.g. raw php code to eval)
Like the idea? If so, I can totally pick this up!