Using filters as a replacement for conditional directives