Filtering content using directives