-
-
Save videlais/cbb21b7d3ee191360da910542a074da7 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
const FileReader = require('extwee/FileReader.js'); | |
const TweeParser = require('extwee/TweeParser.js'); | |
const StoryFormatParser = require('extwee/StoryFormatParser.js'); | |
const HTMLWriter = require('extwee/HTMLWriter.js'); | |
let textfile = "test.twee"; | |
let storyFormat = "format.js"; | |
let outputFile = "example.html"; | |
let fr = new FileReader(textfile); | |
let tp = new TweeParser(fr.contents); | |
let sfp = new StoryFormatParser(storyFormat); | |
let hw = new HTMLWriter(outputFile, tp.story, sfp.JSON); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment