single file directive template