|
|
1.1 ! moko 1: @mime-types[] ! 2: $calls($calls+1) ! 3: $result[^table::create{ext mime-type ! 4: txt text/plain ! 5: html text/html ! 6: }] ! 7: ! 8: @main[] ! 9: $calls(0) ! 10: calls before: $calls ! 11: $names[a.TXT;b.html;c.bin] ! 12: ^names.foreach[;name]{ ! 13: $f[^file::create[text;$name;x]] ! 14: ${name}: $f.content-type ! 15: calls after: $calls ! 16: }