Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

A T4-like .NET text templating library that supports runtime parsing and does not depend on Visual Studio

License

Notifications You must be signed in to change notification settings

sandord/Subspace.TextTemplating

Repository files navigation

Subspace.TextTemplating is a .NET text templating library.

THIS REPOSITORY HAS BEEN ARCHIVED

Key features

  • Allows for creating text based output dynamically by using templates with inline code;
  • Largely T4 compatible;
  • Supports the C# language;
  • Works in a fashion similar to popular web oriented server side languages such as the ASP.NET family and PHP;
  • Supports the Visual Studio debugger allowing you to step through the template file;
  • Supports template properties, which provide access to existing object instances from within a template;

Some benefits over T4

  • Supports runtime transformation of runtime acquired templates so you can change text template files without having to recompile your application;
  • Does not depend on Visual Studio so no need to ship additional copyrighted DLLs;
  • Supports dynamic parsing of templates from inline code, allowing for conditional template includes.

Some of the possible uses are

  • Store e-mail templates in a database and transform them on the fly;

Examples

You can take a look at the supplied unit tests for some usage examples.

About

A T4-like .NET text templating library that supports runtime parsing and does not depend on Visual Studio

Resources

License

Stars

Watchers

Forks

Packages

No packages published