#52 change render templates logic
Merge pull request #59 from sklyarov-ivan/issue52

#52 change render templates logic