refactoring render method names
added support for partial rendering from templates