diff --git a/docs/en/Text-Templating-Razor.md b/docs/en/Text-Templating-Razor.md index 6c4f9080c6..5bb00b4e82 100644 --- a/docs/en/Text-Templating-Razor.md +++ b/docs/en/Text-Templating-Razor.md @@ -162,7 +162,7 @@ Inline localization uses the [localization system](Localization.md) to localize Assuming you need to send an email to a user to reset her/his password. Here, the model/template content: -```` +````csharp namespace ResetMyPasswordModelNamespace { public class ResetMyPasswordModel @@ -174,7 +174,7 @@ namespace ResetMyPasswordModelNamespace } ```` -```` +````html @inherits Volo.Abp.TextTemplating.Razor.RazorTemplatePageBase @Localizer["ResetMyPassword", Model.Name] ```` @@ -215,7 +215,7 @@ var result = await _templateRenderer.RenderAsync( You will see the localized result: -````csharp +````html Hi john, Click here to reset your password ```` @@ -281,7 +281,7 @@ For example, you may want to create a single layout for all of your email templa First, create a template file just like before: -````csharp +````html @inherits Volo.Abp.TextTemplating.Razor.RazorTemplatePageBase @@ -331,7 +331,7 @@ ABP passes the `model` that can be used to access to the model inside the templa An example template content: -````csharp +````html @inherits Volo.Abp.TextTemplating.Razor.RazorTemplatePageBase A global object value: @GlobalContext["myGlobalObject"] ```` diff --git a/docs/en/images/hello-template-razor.png b/docs/en/images/hello-template-razor.png new file mode 100644 index 0000000000..1e0e39fcec Binary files /dev/null and b/docs/en/images/hello-template-razor.png differ diff --git a/docs/en/images/multiple-file-template-razor.png b/docs/en/images/multiple-file-template-razor.png new file mode 100644 index 0000000000..85f87e84f4 Binary files /dev/null and b/docs/en/images/multiple-file-template-razor.png differ diff --git a/docs/en/images/replace-email-layout-razor.png b/docs/en/images/replace-email-layout-razor.png new file mode 100644 index 0000000000..84ff6c1080 Binary files /dev/null and b/docs/en/images/replace-email-layout-razor.png differ