Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.34 KB

README.adoc

File metadata and controls

38 lines (25 loc) · 1.34 KB

Slim H Tag

Build Status Test Coverage Codacy Code quality Gem Version

This project provides a filter for Slim templating engine that allows to easily define a heading tag with parametrized level (h1h6).

Usage

Require file slim-htag. Use tag h with special attribute level for heading level (1-6):

h level=title_level =title

If title_level = 1 and title = "Heading", then the above template would be rendered as:

<h1>Heading</h1>

You can redefine name of the level attribute using option htag_level_attr (only with Slim ~> 3.0).

License

This project is licensed under MIT License. For the full text of the license, see the LICENSE file.