uSync.AutoTemplates 13.2.3

dotnet add package uSync.AutoTemplates --version 13.2.3
NuGet\Install-Package uSync.AutoTemplates -Version 13.2.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="uSync.AutoTemplates" Version="13.2.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add uSync.AutoTemplates --version 13.2.3
#r "nuget: uSync.AutoTemplates, 13.2.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install uSync.AutoTemplates as a Cake Addin
#addin nuget:?package=uSync.AutoTemplates&version=13.2.3

// Install uSync.AutoTemplates as a Cake Tool
#tool nuget:?package=uSync.AutoTemplates&version=13.2.3

uSync.AutoTemplates

Current Status: Experimental

AutoTemplates is currently a uSync experiment, you can try it, and we would love feedback, but really make sure you have backups, etc, before you use it.

You need to get uSync from our nightly feed to get the nuget package.


Current Version : 9.0.0-rc003.20210911.8

You can add the package to your project with dotnet add

dotnet add package uSync.AutoTemplates -v 9.0.0-rc003.20210911.8

Template folder watcher, that keeps your template folder in Sync with Umbraco's Templates view.

If you create or edit .cshtml files in the view folder outside of Umbraco AutoTemplates will attempt to workout how the file should fit into the templates.

How it works

Note: Only works when Umbraco:Hosting:Mode is debug

  1. AutoTemplates watches the ~/views folder in your Umbraco site,

  2. Tries to find the Umbraco template in the DB for the file, if it doesn't exist it creates the template entry.

  3. Reads the file and reads the value of the Layout variable, to workout what the master template should be - and put the template in umbraco in the right place

  • also scans the folder at startup for when you change things while Umbraco isn't running.

Settings

By default - AutoTemplates is disabled, you have to turn it on in the appsettings.config file:

Enable AutoTemplates (default: false)

"uSync": {
    "AutoTemplates": {
        "Enabled": true
    }
}

Delete missing templates (default: false)

When enabled - AutoTemplates will delete Templates from the Umbraco database when it cannot find a file in the ~/views folder for that template.

this is off by default, changing settings such as compile razor views can cause these files to be missing from disk, so if you have made changes like that you should keep this value turned off.

"uSync": {
    "AutoTemplates": {
        "Enabled": true
        "Delete": true
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
13.2.3 211 5/24/2024
13.2.2 94 4/30/2024
13.2.1 70 4/22/2024
13.2.0 77 4/17/2024
13.1.3 243 3/14/2024
13.1.2 175 3/11/2024
13.1.1 387 2/28/2024
13.1.0 386 2/15/2024
13.1.0-beta01 575 1/24/2024
13.0.1 296 1/15/2024
13.0.0 861 12/14/2023
13.0.0-rc2 473 11/30/2023
13.0.0-rc1 154 11/27/2023
12.2.4 78 5/29/2024
12.2.3 74 1/15/2024
12.2.2 612 11/7/2023
12.2.1 426 10/25/2023
12.2.0 593 10/6/2023
12.2.0-rc1 74 9/27/2023
12.1.0 121 8/10/2023
12.0.2 155 6/29/2023
12.0.1 148 6/29/2023
12.0.0 141 6/29/2023
12.0.0-rc1 105 6/22/2023
11.2.1 138 6/7/2023
11.2.0 139 5/11/2023
11.1.0 205 3/29/2023
11.0.3 217 3/16/2023
11.0.2 226 3/3/2023
11.0.1 288 1/12/2023
11.0.0 317 12/1/2022
11.0.0-rc3 112 11/4/2022
10.7.3 75 1/23/2024
10.7.2 79 1/15/2024
10.7.1 126 10/4/2023
10.7.0 103 9/25/2023
10.6.2 115 8/10/2023
10.6.1 124 6/7/2023
10.6.0 141 5/11/2023
10.5.0 188 4/4/2023
10.3.4 194 3/16/2023
10.3.3 219 3/3/2023
10.3.2 293 1/12/2023
10.3.1-beta001 128 11/17/2022
10.3.0 399 10/20/2022
10.2.1 472 9/26/2022
10.2.0 871 9/8/2022
10.1.0 469 8/4/2022
10.0.0 480 6/16/2022
10.0.0-rc5 132 6/8/2022
10.0.0-beta1 152 5/16/2022
9.4.0 582 4/25/2022
9.3.2 566 4/1/2022
9.3.1 566 3/31/2022
9.3.0 585 3/29/2022
9.2.0 644 2/21/2022
9.0.6 462 1/7/2022
9.0.2 448 10/7/2021
9.0.0-rc004 284 9/23/2021

9.0 : Dotnet core version
- 9.1 : Net 5/6 targets
- 9.2 : Peformance improvements
- 9.3 : Single pass
- 9.4 : First boot
10.0 : Umbraco 10 release (LTS)
- 10.1 : Umbraco 'Production' mode support
- 10.2 : Upload / Download Syncs
11.0 : Umbraco v11 release
12.0 : Umbraco v12 release
13.o : Umbraco v13 release