mirror of https://github.com/abpframework/abp.git
3 changed files with 24 additions and 9 deletions
@ -0,0 +1,19 @@ |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.TextTemplating.VirtualFiles; |
|||
|
|||
namespace Volo.Abp.TextTemplating |
|||
{ |
|||
public static class TemplateDefinitionExtensions |
|||
{ |
|||
public static TemplateDefinition AddVirtualFiles( |
|||
[NotNull] this TemplateDefinition templateDefinition, |
|||
[NotNull] string virtualPath) |
|||
{ |
|||
Check.NotNull(templateDefinition, nameof(templateDefinition)); |
|||
|
|||
return templateDefinition.AddContributor( |
|||
new VirtualFileTemplateContributor(virtualPath) |
|||
); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue