mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
using Volo.Abp.TextTemplating.Localization;
|
|
|
|
namespace Volo.Abp.TextTemplating
|
|
{
|
|
public class TestTemplateDefinitionProvider : TemplateDefinitionProvider
|
|
{
|
|
public override void Define(ITemplateDefinitionContext context)
|
|
{
|
|
context.Add(
|
|
new TemplateDefinition(
|
|
TestTemplates.WelcomeEmail,
|
|
defaultCultureName: "en"
|
|
).WithVirtualFilePath("/SampleTemplates/WelcomeEmail", false)
|
|
);
|
|
|
|
context.Add(
|
|
new TemplateDefinition(
|
|
TestTemplates.ForgotPasswordEmail,
|
|
localizationResource: typeof(TestLocalizationSource),
|
|
layout: TestTemplates.TestTemplateLayout1
|
|
).WithVirtualFilePath("/SampleTemplates/ForgotPasswordEmail.tpl", true)
|
|
);
|
|
|
|
context.Add(
|
|
new TemplateDefinition(
|
|
TestTemplates.TestTemplateLayout1,
|
|
isLayout: true
|
|
).WithVirtualFilePath("/SampleTemplates/TestTemplateLayout1.tpl", true)
|
|
);
|
|
}
|
|
}
|
|
}
|