embeddeD

何でも末尾を大文字の D にすれば良いと思っているらしい。

hello.ed が

#!/home/i/wrk/embedded/embedded

Content-Type: text/html

<%#
 private import std.string;
 %>

<%= "hello" %>

<%
 for (int i = 0; i < 10; i++) {
  std.stream.stdout.write(std.string.toString(i));
 }
 %>

となっていて、

 private import std.string;
 private import std.stream;
int main() {
std.stream.stdout.writeString("Content-Type: text/html\n\n");
std.stream.stdout.writeString("\n\n");
std.stream.stdout.writeString( "hello" );
std.stream.stdout.writeString("\n\n");

 for (int i = 0; i < 10; i++) {
  std.stream.stdout.write(std.string.toString(i));
 }
 std.stream.stdout.writeString("\n\n");
return 0;
}

と hello.ed.d が生成されて、コンパイルして hello.ed.exe ができてさらに実行して、

Content-Type: text/html



hello

0123456789

と、出力が得られます。

なにかあれば下記メールアドレスへ。
shinichiro.hamaji _at_ gmail.com
shinichiro.h