add support for returning module contents as HTML
comment out file extensions because pattern does not match
use .get() in case HTTP_ACCEPT is not set