Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Simplify.Web configuration

Alexanderius edited this page Jun 26, 2019 · 5 revisions

Simplify.Web configuration

You can configure Simplify.Web via appsettings.json (be default) configuration file.

To configure, just simply create SimplifyWebSettings section in your config file:

Possible options

{
    "SimplifyWebSettings":
    {
        // Default web-site language (default value is: en)
        "DefaultLanguage": "en",

        // Indicates what if no language is specified in cookie (by LanguageManager class), then a user browser language will be set as a current language for request (default value is: false)
        "AcceptBrowserLanguage": true,

        // Default HTML templates path (default value is: Templates)
        "DefaultTemplatesPath": "MyTemplates/Templates",

        // Indicates what HTML templates files should be loaded from assembly instead of templates folder (default value is: false)
        "LoadTemplatesFromAssembly": true,

        // Default master template file name (default value is: Master.tpl)
        "DefaultMasterTemplateFileName": "Master.tpl",

        // Default main content variable name (variable to store current page data, default value is: MainContent)
        "DefaultMainContentVariableName": "MainContent",

        // Default site title variable name (default value is: Title)
        "DefaultTitleVariableName": "Title",

        // Default site style name (default value is: Main)
        "DefaultStyle": "Main",

        // Data path (default value is: App_Data)
        "DataPath": "App_Data",

       // Indicates whether Simplify.Web static files processing is enabled or controllers requests should be processed only (default value is: true)
        "StaticFilesEnabled": true,

        // Allowed static files paths (default value is: styles, scripts, images, content, fonts)
        "StaticFilesPaths": "Content, Scripts, Images",

        // String table files (default value is: StringTable.xml)
        "StringTableFiles": "Titles.xml, Messages.xml",

        // Indicates what framework should not automatically set a site title (default value is: false)
        "DisableAutomaticSiteTitleSet": true,

        // Indicates what exception details should not be shown in case when framework catches and displays any exception (default value is: false)
        "HideExceptionDetails": true,

        // Enables HTML templates in-memory cache (default value is: false)
        "TemplatesMemoryCache": true,

        // Enables string table in-memory cache (default value is: false)
        "StringTableMemoryCache": true,

        // Globally disables file read caching (default value is: false)
        "DisableFileReaderCache": true,

        // Logs HTTP requests info to the console (default value is: false)
        "ConsoleTracing": true
    }
}

<< Previous page Next page >>

Clone this wiki locally