cartridge code with spray template