Merge sidebar into a standalone template file