refactored renderer_base template to generate files using an isFirst boolean instead of map method
Source formatting