Skip to content

2.0.0-beta1

Pre-release
Pre-release
Compare
Choose a tag to compare
@toddams toddams released this 22 Dec 19:39
· 508 commits to master since this release

What's new?

Breaking changes

  • Added new type: RazorLightEngineBuilder that comes to replace EngineFactory, as too many overloads are annoying
  • EngineFactory masked as Obsolete.
  • EngineFactory.RazorEngine is moved to DefaultRazorEngine.Instance
  • ICompilationService.CompileAndEmit renamed to CompileAsync and returns Task
  • DefaultCachingProvider renamed to MemoryCachingProvider

Note: there was a major refactoring, you may find some classes are moved to another namespaces

New features

  • Templates that are resolved from FileSystem are now invalidated from MemoryCache when you change it.

  • You can now create an engine without a project, if you want to only create templates from strings - #110

  • It is possible now to create engine without caching provider

  • Add ability to set operating assembly (uses EntryAssembly if not specified)

  • Disable encoding for the entire document with template property "DisableEncoding" - #106

Bug fixes

  • Fix ViewBag not passed to the engine #97
  • Close stream after read - #120
  • Fix concurrent template build fails - #103