Adds support for partial templates

This will save a template as partial if its filename starts from underscore.