i want to be able to separate presentation markup from program logic by being able to insert a dynamically computed element into a pre-existing document template. is there a way to do this in marklogic, or do i have to hard-code html into the body of a function?