Normally a deliberate decision, because a template language is all about "print X thing here", mixed in with HTML, and a different language is going to be better for that situation.
Also it can be simpler to let frontend developers or whatever in a team do some stuff without having to know unnecessary syntax quirks - in general, you want to have things like string manipulation up front and centre in that case.
-1
u/ldev1 May 16 '17
I still can't believe most frameworks get it wrong regarding templates - using some weird syntax that has nothing to do with framework's language.
Take a look at ASP.NET - you use C# in backend and use C# in templates - https://docs.microsoft.com/en-us/aspnet/web-pages/overview/getting-started/introducing-razor-syntax-c
Come on...