Allow templates to be compiled to AMD modules