-
-
Save videlais/93000ba70b81ff98d838a08992193b07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace the story name in the source file | |
this.storyFormat.source = this.storyFormat.source.replace("{{STORY_NAME}}", this.story.name); | |
// Replace the story data | |
this.storyFormat.source = this.storyFormat.source.replace("{{STORY_DATA}}", this.storyData); | |
this.outputContents += this.storyFormat.source | |
// Write the entire contents out | |
fs.writeFileSync(file, this.outputContents); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment