No matter what template engine I look at, they all ways want a Map
Any thoughts?
Not so. As a matter of fact you are quite able to return a string. Or a stream. In any backend worthy of that name.
Imagine having to return a PDF as a stream in the form of a Map
But the model and view class is purly for using template engines and nothing else. I don't get where you are coming from with your pdf and stream example?
@ruurd I don't think he means the return value, just that the template-parameters should be map model, string path in stead of object model, string path. As he said, all template engines require a model of type map for rendering templates.
@tipsy Exacly, when you create a ModelandView the actual Model Map within that class should be changed from Object to Map
Most helpful comment
@tipsy Exacly, when you create a ModelandView the actual Model Map within that class should be changed from Object to Map to cure what I said in my first comment.