Merge branch 'master' into dev

pull/3950/head
Halil İbrahim Kalkan 5 years ago
commit f3564983e2

@ -45,6 +45,9 @@ While there is no Razor Pages & MongoDB combination, you can check both document
* [Source code](https://github.com/abpframework/abp-samples/tree/master/RabbitMqEventBus)
* [Distributed event bus document](../Distributed-Event-Bus.md)
* [RabbitMQ distributed event bus integration document](../Distributed-Event-Bus-RabbitMQ-Integration.md)
* **Text Templates Demo**: Shows different use cases of the text templating system.
* [Source code](https://github.com/abpframework/abp-samples/tree/master/TextTemplateDemo)
* [Text templating documentation](../Text-Templating.md)
* **Authentication Customization**: A solution to show how to customize the authentication for ASP.NET Core MVC / Razor Pages applications.
* [Source code](https://github.com/abpframework/abp-samples/tree/master/aspnet-core/Authentication-Customization)
* Related "[How To](../How-To/Index.md)" documents:

@ -42,6 +42,10 @@ Template rendering engine is very powerful;
* You can define **layout templates** to be used as the layout while rendering other templates.
* You can pass arbitrary objects to the template context (beside the model) for advanced scenarios.
### Source Code
Get [the source code of the sample application](https://github.com/abpframework/abp-samples/tree/master/TextTemplateDemo) developed and referred through this document.
## Installation
It is suggested to use the [ABP CLI](CLI.md) to install this package.
@ -253,7 +257,7 @@ Assuming that you want to send a welcome email to your users, but want to define
First, create a folder and put your templates inside it, like `en.tpl`, `tr.tpl`... one for each culture you support:
![multiple-file-template](D:\Github\abp\docs\en\images\multiple-file-template.png)
![multiple-file-template](images/multiple-file-template.png)
Then add your template definition in the template definition provider class:
@ -442,4 +446,10 @@ Return `null` if your source can not find the content, so `ITemplateContentProvi
### Template Definition Manager
`ITemplateDefinitionManager` service can be used to get the template definitions (created by the template definition providers).
`ITemplateDefinitionManager` service can be used to get the template definitions (created by the template definition providers).
## See Also
* [The source code of the sample application](https://github.com/abpframework/abp-samples/tree/master/TextTemplateDemo) developed and referred through this document.
* [Localization system](Localization.md).
* [Virtual File System](Virtual-File-System.md).

@ -179,6 +179,10 @@
"text": "Object to object mapping",
"path": "Object-To-Object-Mapping.md"
},
{
"text": "Text Templating",
"path": "Text-Templating.md"
},
{
"text": "Object Serialization"
},

Loading…
Cancel
Save