Independently compile templates for the ui/ and demo/ directories