jekyll-html Build Status Gem Version

A Jekyll plugin to use HTML tags in Jekyll pages, posts and collections.

Installation

Add this line to your application's Gemfile:

$ gem 'jekyll-html'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-html

Usage

Input:

{% starttag p %}
  Example text
{% endtag p %}

{% starttag div class=test_class %}
  {% starttag p class=test_class %}
    Example text
  {% endtag p class=test_class %}
{% endtag div %}

Output:

<p>
  Example text
</p>

<div class="test class">
  <p class="test_class">
    Example text
  </p> <!-- this tag can not have any attributes, because he closes  -->
</div>

License

MIT