Accessing all registered file extensions for a given template class
lilith opened this issue · 1 comments
lilith commented
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.
judofyr commented
This is provided by Tilt::Mapping#extensions_for
. You can access the default Mapping
object with Tilt.default_mapping
.