rtomayko / tilt

Generic interface to multiple Ruby template engines

Home Page:http://github.com/rtomayko/tilt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessing all registered file extensions for a given template class

lilith opened this issue · comments

For example, given Tilt::BlueClothTemplate, I would like to know what file extensions are associated with it. In 1.X I did this by accessing the Tilt.mappings hash.

This is provided by Tilt::Mapping#extensions_for. You can access the default Mapping object with Tilt.default_mapping.