I don't think there would be any OOTB feature that allows this. The one closest is an OOTB option that allows users to add HTML via a component. You can, technically, have a template without any code, and then read the HTML that was added by an author and render the page. Checkout the RTE field.