fix partials resolution when name ends with extension

When you define a template with partials, partials can now
ends with template extension, such as:

  <div>
    {{> myPartial.html}}
  </div>

If partial does not ends with extension, it will be
automatically appended during partial resolution.