Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // http://baussprojects.comlu.com/projects.php#daweb
- module main;
- import std.file;
- void main(string[] args) {
- try {
- string id = args[$-1];
- string path = args[$-2];
- string htmlFile = path ~ id ~ ".dml";
- @VARS
- if (exists(htmlFile)) {
- @FUNCS
- string html = readText(htmlFile);
- @CODE
- write(htmlFile, html);
- }
- }
- catch (Throwable t) {
- import std.stdio : writeln;
- writeln(t);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement