Skip to content

Text templating is used to dynamically render contents based on a template and a model.

License

Notifications You must be signed in to change notification settings

axuno/TextTemplating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2862e3f · Jul 25, 2024

History

53 Commits
Jul 3, 2024
Jul 25, 2024
Feb 24, 2021
Nov 10, 2020
Nov 10, 2020
Jan 18, 2021
Nov 10, 2020
Jan 10, 2023
Nov 10, 2020
Nov 10, 2020
Nov 10, 2020
Nov 10, 2020

Repository files navigation

Logo

Axuno.TextTemplating

build + test

Text templating is used to dynamically render contents based on a template and a model.

  • It is based on the Scriban library, a language that supports conditional logics, loops and much more.
  • Template content can be localized.
  • 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.

The library is a modified version of the lightweight TextTemplating.Scriban part of Volo.Abp.TextTemplating 7.0, (i.e., exluding the more heavy TextTemplating.Razor) Modifications to the source code were made by axuno in 2020-23. Changes focused on:

  • decouple Volo.Abp.TextTemplating from all dependencies of the Abp Framework
  • replace the dependency Volo.Abp.VirtualFileSystem with a modified forked version of it (Axuno.VirtualFileSystem)
  • use Microsoft DependencyInjection instead of AutoFac
  • use .Net resource files for inline localization instead JSON files
  • change of namespaces

Getting started

About

Text templating is used to dynamically render contents based on a template and a model.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages