Umbraco Razor Quick Reference
This is a quick reference/cheatsheet for use when writing Razor views/partials for Umbraco
There's two main purposes for this:
- For use with Dash on macOS - it's the perfect app for all sorts of API/reference lookups, as it can use the editor's context for opening the correct bundle (Razor) and search for the "current" word.
- To serve as a reference section on a website so you can easily point people to a URL that explains a specific property/method.
Feel free to use the issue tracker or perhaps even fork the repo and submit pull requests for discussion, if you see anything that's missing.
The data for this has been (and continues to be) collected from various sources - mainly from the v6 Strong Cheatsheet PDF, but also from the Umbraco source code and docs. It's a single XML file in the src/data folder.
The codesamples are also in a separate XML file, so contributing a small code sample for a property or function should be super easy. (Just imagine if that was a JSON file and you had to escape all the double quotes... crickets ... :-)
Chriztian Steinmeier, 2018