3 ms·
I was excited until I got to this: > Razr Template Engine Even if you don't like Twig (why wouldn't you?) there are at least a dozen template engines already.
by adamors 12y ago
I was excited until I got to this:
> Razr Template Engine
Even if you don't like Twig (why wouldn't you?) there are at least a dozen template engines already.
I wonder in what other places did NIH take over?
- HeyOlivia 12y agoYou can also use Twig as template engine. Not a big deal.
- adamors 12y agoThat wasn't really my point. Yet another PHP templating engine is a code smell to me. Or project smell, if you wish.
- debaserab2 12y agoI'm inclined to agree with adamors, any time a framework says you can plugin any templating engine, it's almost always more of a hassle than not. If you choose a templating engine that is not a first class citizen of the framework, you're often blocked from key features or functionality offered by the framework. Even if a third party library bridges the feature gap, that library often trails development of the framework or ends up unmaintained and outdated. I also agree that it's disappointing Twig wasn't selected. It's syntax is incredibly common among templating engines so ramp up time for new developers is usually short - and once you get into the more complex features it's pretty dang cool.
- nek4life 12y agoPretty sure Razor is a .NET thing. This looks like the same syntax. The Play framework's Scala based template engine is based on it as well.
- adamors 12y agoThere is at least one other popular PHP templating engine based on Razor, called Blade.