contend directive article, template optimizations