rtomayko / tilt

Generic interface to multiple Ruby template engines
http://github.com/rtomayko/tilt
Other
1.95k stars 226 forks source link

Add Mapping#unregister(*extensions) #376

Closed jeremyevans closed 2 years ago

jeremyevans commented 2 years ago

This makes it simpler to remove already registered extensions.

Fixes #330

judofyr commented 2 years ago

(Note: This now has a conflict with master)

jeremyevans commented 2 years ago

Should we also provide Tilt.unregister? 🤔 I'm not sure if we want to rather promote the use of Tilt.default_mapping or introduce more Tilt-level methods?

I doubt this method will be used much, so I don't think it is necessary. However, I don't have objections to adding it.

I rebased this so I can be merged.

judofyr commented 2 years ago

Aaand I merged the minitest/spec so now this out of date again 🙃

jeremyevans commented 2 years ago

No problem, I'll rebase later today.

jeremyevans commented 2 years ago

OK, this has been rebased.