Use template from endpoint declaration

When `render` when the render method has not been executed, template
from endpoint declaration should be used.
Merge pull request #32 from LTe/render-method

Use template from endpoint declaration