RazorLight v2.0.0-beta1 Release Notes

Release Date: 2017-12-22 // over 6 years ago
  • 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
    • 0๏ธโƒฃ 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