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.
24 lines
909 B
24 lines
909 B
namespace Volo.Abp.TextTemplating.Scriban;
|
|
|
|
public class ScribanTestTemplateDefinitionProvider : TemplateDefinitionProvider
|
|
{
|
|
public override void Define(ITemplateDefinitionContext context)
|
|
{
|
|
context.GetOrNull(TestTemplates.WelcomeEmail)?
|
|
.WithVirtualFilePath("/SampleTemplates/WelcomeEmail", false)
|
|
.WithScribanEngine();
|
|
|
|
context.GetOrNull(TestTemplates.ForgotPasswordEmail)?
|
|
.WithVirtualFilePath("/SampleTemplates/ForgotPasswordEmail.tpl", true)
|
|
.WithScribanEngine();
|
|
|
|
context.GetOrNull(TestTemplates.TestTemplateLayout1)?
|
|
.WithVirtualFilePath("/SampleTemplates/TestTemplateLayout1.tpl", true)
|
|
.WithScribanEngine();
|
|
|
|
context.GetOrNull(TestTemplates.ShowDecimalNumber)?
|
|
.WithVirtualFilePath("/SampleTemplates/ShowDecimalNumber.tpl", true)
|
|
.WithScribanEngine();
|
|
}
|
|
}
|