Skip to content

Instantly share code, notes, and snippets.

@bobthecow
bobthecow / html_compressor.rb
Created February 29, 2012 22:36 — forked from dutygeeks/html_compressor.rb
HTML COMPRESSOR
require 'html_compressor'
class HtmlCompressor < Nanoc3::Filter
identifier :html_compressor
# Runs the content through htmlcompressor.
#
# This method optionally takes options to pass directly to htmlcompressor
#
# @param [String] content The content to filter
@bobthecow
bobthecow / create_article.rb
Created July 25, 2011 00:28
nanoc create_article command
# encoding: utf-8
usage 'create_article [options] identifier'
summary 'create an article'
aliases :ca
description <<-EOS
Create a new article in the current site. The first data source in the site
configuration will be used.
EOS