2.0.0-beta1
Pre-release
Pre-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