It's so interesting :D
After I posted the question, I decided to build a fluent template engine. And now, when I take a look at your solution, I see they are too closed together.
However, if I have enough time, I'll create a fluent template engine. Thanks to your answer.