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