samvincent / jekyll-haml

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

pass Jekyll context to Haml renderer #35

Open duck-rh opened 5 years ago

duck-rh commented 5 years ago

This is needed to access the site/page/… variables usually accessible in Liquid templates in Ruby code.

duck-rh commented 5 years ago

Some site methods are only available through the SiteDrop class, so I adapted to behave like a Liquid context.