Jekyll Haml Markup
Jekyll plugin that enables Haml as a markup option for layouts and partials.
Note: This gem overwrites the include jekyll tag.
Installation
Add it to your Gemfile:
gem 'jekyll-haml-markup', group: :jekyll_plugins
Usage
You just need to save your layout or template with extension .haml, replacing any other extension.
The layout haml markup is rendered with hooks before the Liquid render phase and modify version of the include tag is in charge of the partials.
!!!
%html
%head
%title Fake title
%link{href: "{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}", rel: "stylesheet", type: 'text/css'}
%link(href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}" rel="stylesheet" type='text/css')
%body
%header
{% include header.haml %}
%main
{{ content }}
%footer
{% include footer.html %}
%script{src: "{{ '/assets/javascript/script.css?v=' | append: site.github.build_revision | relative_url }}"}
Front-matter headers are not working on partials.
Development
I started this gem because I couldn't make work the gem jekyll-haml.
At this moment, this gem just works overriding Jekyll classes and methods. It's not a stable option and it has to be reviewed. If you want to help, just email me.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/afaundez/jekyll-haml-markup. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Jekyll::Haml::Markup project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.