ASP.NET MVC 4 AllowAnonymous Attribute and Authorize Attribute
CoffeeScript and Orchard CMS Module Development
Spice up your Orchard CMS Development with a little CoffeeScript! CoffeeScript is a small language that compiles to JavaScript and is often easier to write and read compared to JavaScript. When you are developing Orchard Modules that require custom JavaScript go ahead and write the code in CoffeeScript and take advantage of a free Visual Studio 2010 Plugin that compiles the CoffeeScript to JavaScript for you!

Mindscape's Web Workbench is a free Visual Studio 2010 Plugin that provides intellisense for Sass and Less; syntaxhighlighting for CoffeeScript, Sass, and Less; and properly generates CoffeeScript to JavaScript and Sass to CSS.
When creating your CoffeeScript Files in Visual Studio 2010 for your Orchard Modules, Web Workbench will generate the proper JavaScript File for you. Here we are creating a simple Content Part that displays an alert dialog box when a page loads. We write the CoffeeScript in alert.coffee and Web Workbench generates the JavaScript in alert.js.

Adding the Content Part to the Page Content Type gives us the desired results when we browse to the homepage of our Orchard Website.

Again, all script code was originally written in the convenience of CoffeeScript and Web Workbench automatically generated the JavaScript!
If you are an Orchard Web Developer or Orchard Module Developer and interested in CoffeeScript, we recommend installing the Web Workbench Visual Studio 2010 Plugin located here.
If you need a custom Orchard Module or Orchard Website, contact us today!


