Adds code
This commit is contained in:
commit
269bf50c78
33 changed files with 1489 additions and 0 deletions
23
Application/Class.cs
Normal file
23
Application/Class.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
|
||||
namespace Application
|
||||
{
|
||||
public class HelloTagHelper : TagHelper
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public override void Process(TagHelperContext context, TagHelperOutput output)
|
||||
{
|
||||
output.TagName = "div"; // Output bliver et div element
|
||||
|
||||
output.Content.SetHtmlContent($"<h1>Hello {Name}</h1>");
|
||||
}
|
||||
}
|
||||
|
||||
public class ContentManager
|
||||
{
|
||||
|
||||
//public string GetContent(
|
||||
//
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue