Closed V0d01ey closed 6 years ago
What's happening here is that the templating system is trying to load the template contents from the DOM, assuming that the template corresponds to the current HTML document, instead of embedding it in the compiled javascript.
The cause is a really silly bug that I'll fix immediately: arguments aren't passed along correctly here.
Until this fix is released you can override this by adding the following to the top of your HTML file:
<!-- ClientLoad = Inline -->
PS. Also, it would be great if generated cs-file was automatically included to c#-project.
I'm not certain the Roslyn analyzer API allows this kind of modification. @Jand42 you know much more than me about Roslyn, is this possible? It would be nice.
@Tarmil , the problem was not solved.
Oh right sorry for the confusion indeed. For a template that is not used as the served index file, the comment is mandatory:
<!-- ClientLoad = Inline -->
When trying to instantiate a html-template in a new client-server application (from the project template) WS doesn't find it writing this line to console:
Html-file containing only a form is named:
It's generated cs-file is:
And class is named:
WS seeks for key
uploaddialogtemplate
.PS. Also, it would be great if generated cs-file was automatically included to c#-project.