Added some template code for pre_rendering data if
performance is an issue