Generated html for patterns. closes #12