uSync.AutoTemplates 13.1.0-beta01

This is a prerelease version of uSync.AutoTemplates.
There is a newer version of this package available.
See the version list below for details.
dotnet add package uSync.AutoTemplates --version 13.1.0-beta01                
NuGet\Install-Package uSync.AutoTemplates -Version 13.1.0-beta01                
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.1.0-beta01" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add uSync.AutoTemplates --version 13.1.0-beta01                
#r "nuget: uSync.AutoTemplates, 13.1.0-beta01"                
#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.1.0-beta01&prerelease

// Install uSync.AutoTemplates as a Cake Tool
#tool nuget:?package=uSync.AutoTemplates&version=13.1.0-beta01&prerelease                

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.5 102 8/28/2024
13.2.4 110 6/27/2024
13.2.3 245 5/24/2024
13.2.2 128 4/30/2024
13.2.1 102 4/22/2024
13.2.0 106 4/17/2024
13.1.3 275 3/14/2024
13.1.2 209 3/11/2024
13.1.1 412 2/28/2024
13.1.0 401 2/15/2024
13.1.0-beta01 604 1/24/2024
13.0.1 314 1/15/2024
13.0.0 890 12/14/2023
13.0.0-rc2 498 11/30/2023
13.0.0-rc1 174 11/27/2023
12.2.4 111 5/29/2024
12.2.3 93 1/15/2024
12.2.2 641 11/7/2023
12.2.1 469 10/25/2023
12.2.0 622 10/6/2023
12.2.0-rc1 99 9/27/2023
12.1.0 156 8/10/2023
12.0.2 181 6/29/2023
12.0.1 176 6/29/2023
12.0.0 173 6/29/2023
12.0.0-rc1 131 6/22/2023
11.2.1 170 6/7/2023
11.2.0 167 5/11/2023
11.1.0 230 3/29/2023
11.0.3 243 3/16/2023
11.0.2 256 3/3/2023
11.0.1 313 1/12/2023
11.0.0 345 12/1/2022
11.0.0-rc3 135 11/4/2022
10.7.3 103 1/23/2024
10.7.2 94 1/15/2024
10.7.1 156 10/4/2023
10.7.0 135 9/25/2023
10.6.2 145 8/10/2023
10.6.1 153 6/7/2023
10.6.0 166 5/11/2023
10.5.0 202 4/4/2023
10.3.4 225 3/16/2023
10.3.3 232 3/3/2023
10.3.2 323 1/12/2023
10.3.1-beta001 155 11/17/2022
10.3.0 428 10/20/2022
10.2.1 502 9/26/2022
10.2.0 903 9/8/2022
10.1.0 496 8/4/2022
10.0.0 497 6/16/2022
10.0.0-rc5 162 6/8/2022
10.0.0-beta1 181 5/16/2022
9.4.0 610 4/25/2022
9.3.2 602 4/1/2022
9.3.1 606 3/31/2022
9.3.0 618 3/29/2022
9.2.0 674 2/21/2022
9.0.6 494 1/7/2022
9.0.2 480 10/7/2021
9.0.0-rc004 305 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