Slim H Tag
This project provides a filter for Slim templating engine that allows to easily define a heading tag with parametrized level (h1–h6).
Usage
Require file slim-htag.
Use tag h with special attribute level for heading level (1-6):
h level=title_level =titleIf 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.