0.0
No commit activity in last 3 years
No release in over 3 years
Thymeleaf.rb adaptor for Ruby on Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 4.0.1
~> 5.0
>= 4.0.1
>= 0
 Project Readme

thymeleaf-rails: Thymeleaf.rb for Rails

Simple Rails support for Thymeleaf.rb (a ruby port of [Thymeleaf](http://www.thymeleaf.org, a natural templating engine)).

This is a Work In Progress Project. It is not ready for production use

Usage

Add the gem to the Gemfile and get ready to rock.

gem 'thymeleaf-rails'

Use the .th extension in your templates. Yay!

<table>
  <thead>
    <tr>
      <th data-th-text="${headers.name}">Name</th>
      <th data-th-text="${headers.price}">Price</th>
    </tr>
  </thead>
  <tbody>
    <tr data-th-each="prod : ${all_products}">
      <td data-th-text="${prod.name}">Oranges</td>
      <td data-th-text="${number_to_currency(prod.price, precision: 2)}">0.99</td>
    </tr>
  </tbody>
</table>

TODO List

  • Use Rails I18n backend
  • Create an example app

Contributing and help

Refer to the Thymeleaf.rb repo: trabe/thymeleaf-rb