https://github.com/greystate/umb-razor-reference
Quick Reference for Razor in Umbraco
https://github.com/greystate/umb-razor-reference
prism razor reference umbraco xml xslt
Last synced: 5 months ago
JSON representation
Quick Reference for Razor in Umbraco
- Host: GitHub
- URL: https://github.com/greystate/umb-razor-reference
- Owner: greystate
- Created: 2018-03-24T00:32:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T21:17:47.000Z (almost 4 years ago)
- Last Synced: 2025-11-19T23:09:10.788Z (7 months ago)
- Topics: prism, razor, reference, umbraco, xml, xslt
- Language: XSLT
- Homepage: http://greystate.dk/resources/umbraco/razor-reference/
- Size: 1.45 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Umbraco Razor Quick Reference
This is a quick reference/cheatsheet for use when writing Razor views/partials
for [Umbraco][UMB]

There's two main purposes for this:
1. For use with [Dash][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.
2. To serve as a [reference section][UMBRAZREF] 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][ISSUES] or perhaps even fork the repo and submit pull requests for discussion, if you see anything that's missing.
## Credits
* Uses [@LeaVerou][LEA]'s awesome [Prism][PRISM] for syntax-highlighting the code samples
## DEV Notes
### Tools
I use [CodeKit][CK] for preprocessing LESS and [Kit][KIT] files, and a bash script to transform the XML file with the list of methods into a single HTML file. Yay, XSLT!
### Data
The data for this has been (and continues to be) collected from various sources - mainly from the [v6 Strong Cheatsheet][CHEAT] PDF, but also from the Umbraco
source code and docs. It's a single XML file in the src/data folder (which pulls in a couple of files).
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*
[DASH]: https://kapeli.com/dash/
[UMB]: https://umbraco.com/
[UMBRAZREF]: http://greystate.dk/resources/umbraco/razor-reference/
[CK]: https://codekitapp.com/
[KIT]: https://codekitapp.com/help/kit/
[ISSUES]: https://github.com/greystate/umb-razor-reference/issues
[LEA]: https://github.com/LeaVerou/
[PRISM]: http://prismjs.com/
[CHEAT]: https://our.umbraco.org/projects/developer-tools/umbraco-v6-mvc-razor-cheatsheets/