### generate the minimal index.html
if not outname.file_exists then outname.mkdir
file = "{outname}/index.html"
- if not file.file_exists then
- """
+
+ if not file.file_exists then """
<!DOCTYPE html>
<html>
<!--
</body>
</html>
""".write_to_file(file)
- end
### generate pnacl_js.js in a folder named 'js'
dir = "{outname}/js/"
if not dir.file_exists then dir.mkdir
file = "{dir}/pnacl_js.js"
- if not file.file_exists then
- """
+ if not file.file_exists then """
// This file was generated by Nit, any modification will be lost.
{{{app_name}}}Module = null; // Global application object.
}
}
""".write_to_file(file)
- end
### generate the manifest file : app_name.nmf
# used to point the HTML to the Native Client module