No able to create a new file and dynamically invoke a preprocessed template