handled templates generation