Directive code and snippet for sample use