Skip to content

Instantly share code, notes, and snippets.

View hanneshal's full-sized avatar

Johannes Nickel hanneshal

View GitHub Profile
@hanneshal
hanneshal / templates.coffee
Created April 29, 2012 20:28 — forked from davidgtonge/templates.coffee
Simple CoffeeScript Templating
# Simple Coffeescript Templating
# Global Object to hold the templates
window.simpleCoffeeTemplates =
# An example template
example: (a) ->
"""
<div>
<h1 class='header'>#{a.header}</h1>