Extract base.html