|
|
@@ -9,16 +9,16 @@ pub fn create(project_name: String) {
|
|
|
fs::create_dir(path.join("routes")).expect(fail_msg);
|
|
|
fs::create_dir(path.join("assets")).expect(fail_msg);
|
|
|
fs::write(path.join(".gitignore"), "target/").expect(fail_msg);
|
|
|
- fs::write(path.join("neovan.yml"), create_settings()).expect(fail_msg);
|
|
|
+ fs::write(path.join("neovan.toml"), create_settings()).expect(fail_msg);
|
|
|
fs::write(path.join("routes").join("index.neovan"), hello_world_html()).expect(fail_msg);
|
|
|
}
|
|
|
|
|
|
fn create_settings() -> String {
|
|
|
- r#"production: false
|
|
|
-routes_dir: routes
|
|
|
-build_dir: .build
|
|
|
-assets_dir: assets
|
|
|
-assets_route: /assets
|
|
|
+ r#"[options]
|
|
|
+routes_dir = "routes"
|
|
|
+build_dir = ".build"
|
|
|
+assets_dir = "assets"
|
|
|
+assets_route = "/assets"
|
|
|
"#.to_string()
|
|
|
}
|
|
|
|