samvincent / jekyll-haml

HAML html converter for Jekyll
MIT License
88 stars 40 forks source link

DRY up monkey patch of Jekyll::Layout #10

Closed felixkiss closed 8 years ago

felixkiss commented 10 years ago

This uses an method alias instead of copying the whole code of #initialize.

As seen on https://github.com/hanchang/haml-jekyll/blob/master/_plugins/transform_layouts.rb

I think this is much more stable in terms of future API updates (unless e.g. #transform gets renamed).

samvincent commented 8 years ago

Merged to master