Since your backend generates your HTML, you can and should use your templating language to keep things DRY (Don't Repeat Yourself).