Refactoring Email Template Formatting

Almost every website I’ve built has a contact page, which sends out an email to a list of people.

For many years I was using string based HTML templates with either String.Replace with [KEY] style placeholders, or String.Format and {0} placeholders. Both of these methods are rather ugly when you have to go back and update an email template. Continue reading Refactoring Email Template Formatting

LESS CSS In Visual Studio 2013

I’ve been using Web Essentials for a few weeks to compile LESS files into css. Web Essentials uses the node-less compiler and does a great job of updating the css anytime something is changed.

The issue I’ve been running into is with debugging. The sourcemap files don’t work in chrome, which means anytime you want to edit some styles you have to do a Control+F and search for the selector given in the generated css. This is tedious and very inefficient compared to having the line numbers available directly in chrome. Continue reading LESS CSS In Visual Studio 2013