Microsoft MVP - Orchard CMS Developer

RSS Twitter Google+

Orchard Web Developer - David Hayden

I develop exceptional websites based on Orchard CMS. I create Orchard Themes, custom Orchard Modules and Widgets, and convert WordPress and HTML Templates to Orchard Themes.


Contact Me: david@sarasota.me

Tweets
Quick tip on using WorkContext.CurrentTheme and Html.ThemePath in Orchard CMS. http://t.co/9M8c4ke9 #orchardcms
JetBrains released dotPeek 1.0, their Free .NET decompiler and assembly browser. http://t.co/O65OqcLQ
Amazon Web Services now supports SQL Server and .NET Applications. http://t.co/nNZSd9Z9
After many hours of KoA and Skyrim, I need to find a new RPG for me and the kids. Thinking an older one - Dragon Age: Origins.
Orchard 1.4.1 Released! Download: http://t.co/KDphWq7U Blog Post: http://t.co/MnVvVhHh #orchardcms
Donating my remaining 103 .NET and Software Development books to local public library today. Hope they make a difference!

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!

CoffeeScript and Orchard CMS

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.

Orchard Module Development with CoffeeScript

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

Orchard Website Development

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!

TOP! © Copyright Sarasota.me
FOLLOW ME:
TWITTER