-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
actix-core does not use a server-side template for the fortunes test #4727
Comments
OK, so the same issue applies to Pinging @benaadams. |
That particular
|
I don't think that classifying a framework as a platform means that one can avoid a very clear requirement. Another reading of what you mention is that platform frameworks simply can't be used for the fortunes test, which I don't agree with. In fact, historically there have been implementations based on platforms that still followed all requirements (for the fortunes test), e.g. Lwan in round 13. Let's see what the TechEmpower team says. |
i am fine with using template engine, i dont think it will change much. |
ASP.NET Core does have 3 distinct layers, each of which builds on the one before, but each one having a greater "opinion" on how things are done:
Could make up a template format to parse and use .NET runtime code-gen; or compile time code-gen to output the exact same code that would perform the same as |
I apologize for the ambiguity in the requirements and will think about how to clarify them going forward. The intended interpretation is:
The definition of "template engine" is obviously left undefined and is open to interpretation and debate. But we do want something that is more than string concatenation or an equivalent. I don't want to expressly require that a template should be a file on disk, but the traditional notion of a "template file" merged with a context object to yield output HTML illustrates what we have in mind when we speak of a template engine. We do want implementations of Fortunes to necessarily incur the performance impact of parsing a template and doing that merging to yield an output. Mustache is cited in the requirements because it is available on many platforms and its small feature set seems a reasonable minimum. |
The current implementation of the fortunes test in
actix-core
seems not to use a server-side template as mandated by point IX of the requirements - contrast that with the implementation inactix-pg
. Instead,actix-core
seems to be simply concatenating hardcoded strings.Pinging @fafhrd91.
The text was updated successfully, but these errors were encountered: