Skip to content

Slim filter providing a heading tag with parametrized (dynamic) level (h1-h6)

License

Notifications You must be signed in to change notification settings

niknetniko/slim-htag

 
 

Repository files navigation

Slim H Tag

Build Status

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.

About

Slim filter providing a heading tag with parametrized (dynamic) level (h1-h6)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%