Add dynamic modifiers for templates