move template rendering to its own function
move template rendering to its own function

Move the rendering logic to its own function so we can reuse it.

Also add a switch to disable URL checking to expedite testing.

Change-Id: I7fe6c56c3c204c3a9080996e2c41b5e18999ded0
Signed-off-by: Doug Hellmann <0798ebecfb7bc4dfb9d0445c2fa030eb64e1fa1c@doughellmann.com>

openstack/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals