Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 925 Bytes

README.md

File metadata and controls

43 lines (26 loc) · 925 Bytes

Thymeleaf Bootstrap dialect

This is a draft of a Twitter's Bootstrap Thymeleaf dialect.

For now, it only allows to generate Nav (tabs and pills) using custom Thymeleaf tags.

Requirements

  • Java 6
  • Thymeleaf 2.0.15

Installation

TODO

Usage

Nav tabs

<bootstrap:nav type="tabs">
    <tab id="firstId" label="First tab" active="true">
        any content here : plain text, HTML tags (even if they need to be processed by Thymeleaf !)
    </tab>
    <tab id="secondId" label="Second tab">
        any content here too !
    </tab>
</bootstra:nav>

Nav pills

Just replace the type attribute value by pills !

<bootstrap:nav type="pills">

Bitdeli Badge