Project

slim-htag

0.0
No commit activity in last 3 years
No release in over 3 years
Slim filter providing a heading tag with parametrized (dynamic) level (h1-h6)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 12.0
~> 3.6
~> 0.14

Runtime

< 4.0, >= 2.1
 Project Readme

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.