Aspnetcore: Is it possible to load template code which is razor code from a file or from sql table in Blazor?

Created on 7 May 2020  路  1Comment  路  Source: dotnet/aspnetcore

Is it possible to render a template code/razor code(which may contain any razor code including if else conditions-swich cases- context- variables-etc.etc) ) from a file or database as string and compile it to executable Razor code at runtime?

Answered Resolved area-blazor question

Most helpful comment

@Rahul-Narayanasamy thanks for contacting us.

No, this is not a Blazor feature and is not something we plan to implement. Razor components are compiled to C# clases in your assembly when your project is built and we don't support compiling them at runtime.

>All comments

@Rahul-Narayanasamy thanks for contacting us.

No, this is not a Blazor feature and is not something we plan to implement. Razor components are compiled to C# clases in your assembly when your project is built and we don't support compiling them at runtime.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FourLeafClover picture FourLeafClover  路  3Comments

ermithun picture ermithun  路  3Comments

TanvirArjel picture TanvirArjel  路  3Comments

fayezmm picture fayezmm  路  3Comments

ipinak picture ipinak  路  3Comments