Add nop and replace actions to custom fragment template