can directive work without a template?