Allow to render template with layout that using other template engine, closes #1461.
use resolve_template instead of manual splitting
Allow to use extension with layout method.
Merge pull request #1486 from padrino/allow-rendering-with-other-template-engine

Allow to render template with layout that using other template engine