Created
June 9, 2020 16:47
-
-
Save Beyarz/0341bd510d99f8e90446c58692944908 to your computer and use it in GitHub Desktop.
Convert Diet template to Html
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
import diet.html; | |
import std.stdio; | |
import vibe.http.server; | |
void translateDiet() { | |
auto file = File("public/index.html", "w"); | |
auto dst = file.lockingTextWriter; | |
dst.compileHTMLDietFile!("index.dt", DefaultDietFilters); | |
writeln("Generated index.html."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment