conditionally do template includes to fix lms tests