Browse Source

Add images.

pull/8392/head
maliming 5 years ago
parent
commit
1ef61d56e3
  1. 10
      docs/en/Text-Templating-Razor.md
  2. BIN
      docs/en/images/hello-template-razor.png
  3. BIN
      docs/en/images/multiple-file-template-razor.png
  4. BIN
      docs/en/images/replace-email-layout-razor.png

10
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<ResetMyPasswordModelNamespace.ResetMyPasswordModel>
<a title="@Localizer["ResetMyPasswordTitle"]" href="@Model.Link">@Localizer["ResetMyPassword", Model.Name]</a>
````
@ -215,7 +215,7 @@ var result = await _templateRenderer.RenderAsync(
You will see the localized result:
````csharp
````html
<a title="Reset my password" href="https://abp.io/example-link?userId=123&token=ABC">Hi john, Click here to reset your password</a>
````
@ -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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
@ -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"]
````

BIN
docs/en/images/hello-template-razor.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
docs/en/images/multiple-file-template-razor.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
docs/en/images/replace-email-layout-razor.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Loading…
Cancel
Save