Make resource loading alterable by teplate