Skip to content

Instantly share code, notes, and snippets.

@MadcapJake
Last active January 26, 2018 20:30
Show Gist options
  • Save MadcapJake/2ec9e3588a77a185020dd272952b02fc to your computer and use it in GitHub Desktop.
Save MadcapJake/2ec9e3588a77a185020dd272952b02fc to your computer and use it in GitHub Desktop.
CareML

CoffeeScript Always Reduces Effort -- Markup Language

import CareML from 'coffee-html'
class extends CareML then tag: 'div', id: 'page', children: ->
	@div['#header'] ->
		@h1.classy 'h', style: { 'background-color': '#22df' }
	@div['#menu'] style: { 'background-color': '#2f2' }, ->
		@ul ->
			@li 'one'
			@li 'two'
			@li 'three'
		@h2 'Content Title', style: { 'background-color': '#f22' }
		@p """
		Yet another templating engine, but designed
		for CoffeeScript programming. Utilizes advanced
		ES6 features like Proxies and defineProperty to
		achieve a unique DSL for writing HTML.""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment