Refactored ignore_prefix logic into engine.rb (instead of template.rb). Updated tests.