add isLiteral option for custom directive