mwunsch / prism

A Ruby microformat parser and HTML toolkit powered by Nokogiri
MIT License
63 stars 9 forks source link

Allow registering of microformats #7

Closed lawrencewoodman closed 13 years ago

lawrencewoodman commented 13 years ago

This was done for two reasons:

  1. It makes it easier for users of Prism to add their own microformats.
  2. Without this if an extract() was done for a microformat before all the microformats were loaded, then this wouldn't be able to complete because Prism::Microformat.microformats() would be trying to build a hash with classes that don't exist yet.