adding book data to settings and for loops to templates