From 03e4913f10898b8b739c9bf043388963009c3cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Thu, 14 May 2020 01:35:48 +0300 Subject: [PATCH 1/3] add Text Templating to the navigation menu. --- docs/en/docs-nav.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/en/docs-nav.json b/docs/en/docs-nav.json index 430fdf6b47..5f6203054e 100644 --- a/docs/en/docs-nav.json +++ b/docs/en/docs-nav.json @@ -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" }, From 659baff96db010f1882c41efaa06be1f05a4fb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Thu, 14 May 2020 01:36:07 +0300 Subject: [PATCH 2/3] reference the sample text templating source code --- docs/en/Samples/Index.md | 3 +++ docs/en/Text-Templating.md | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/en/Samples/Index.md b/docs/en/Samples/Index.md index 0c9ce68886..a42d74c1c3 100644 --- a/docs/en/Samples/Index.md +++ b/docs/en/Samples/Index.md @@ -42,6 +42,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: diff --git a/docs/en/Text-Templating.md b/docs/en/Text-Templating.md index db2f25a807..925d26ed6f 100644 --- a/docs/en/Text-Templating.md +++ b/docs/en/Text-Templating.md @@ -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. @@ -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). \ No newline at end of file +`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). \ No newline at end of file From 7f1af28e77c57f2206c306a368ba1c408dc9174c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Thu, 14 May 2020 01:37:32 +0300 Subject: [PATCH 3/3] Update Text-Templating.md --- docs/en/Text-Templating.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Text-Templating.md b/docs/en/Text-Templating.md index 925d26ed6f..9cad6598f1 100644 --- a/docs/en/Text-Templating.md +++ b/docs/en/Text-Templating.md @@ -257,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: