In my company, we are are evaluating several template engines in order to choose one to use with flight.
Subtemplates are perceived by some developers here as a feature, while i have the opinion that they don't fit so good with javascript frameworks, and thus with flight, since they can lead to bad practices.
I think subtemplates come from the past. If a framework is used, its views or components should be the modularization units.
In flight terms, if i have a modular part of the page, it would be better to import it as a different template and render it inside a component. Then i will have a flight selector for its attach point at least, and it will be much easier to evolve that separate template file into a full flight component.
I hope my concern is clear. What is your opinion about this? Are subtemplates a feature or they can lead to bad practices in a team?
Edit: an example of subtemplates i'm talking about are the partials, from dustjs http://akdubya.github.io/dustjs/
At the end of dustjs documentation they say dustjs has the feature of being composable, but the problem is that template composability is not enough. The modularization mechanisms provided by javascript frameworks are more powerful and should be taken into account.