Inline directive factory function