@@ -54,7 +54,7 @@ def save_config_file(config_file: Path, configuration: dict):
54
54
55
55
Params:
56
56
57
- - config_file(Path): path configuration file. (I .e.: "pyscript.toml"). Supported
57
+ - config_file(Path): path configuration file. (i .e.: "pyscript.toml"). Supported
58
58
formats: `toml` and `json`.
59
59
- configuration(dict): app configuration to be saved
60
60
@@ -72,7 +72,7 @@ def string_to_html(
72
72
code : str ,
73
73
title : str ,
74
74
output_path : Path ,
75
- template_name : str = "basic .html" ,
75
+ template_name : str = "wrap .html" ,
76
76
pyscript_version : str = LATEST_PYSCRIPT_VERSION ,
77
77
) -> None :
78
78
"""Write a Python script string to an HTML file template.
@@ -101,7 +101,7 @@ def file_to_html(
101
101
input_path : Path ,
102
102
title : str ,
103
103
output_path : Optional [Path ],
104
- template_name : str = "basic .html" ,
104
+ template_name : str = "wrap .html" ,
105
105
pyscript_version : str = LATEST_PYSCRIPT_VERSION ,
106
106
) -> None :
107
107
"""Write a Python script string to an HTML file template."""
@@ -126,13 +126,14 @@ def create_project(
126
126
127
127
TODO: more files to add to the core project start state.
128
128
"""
129
+ date_stamp = datetime .date .today ()
129
130
context = {
130
131
"name" : app_name ,
131
132
"description" : app_description ,
132
133
"type" : "app" ,
133
134
"author_name" : author_name ,
134
135
"author_email" : author_email ,
135
- "version" : f"{ datetime . date . today (). year } .1 .1" ,
136
+ "version" : f"{ date_stamp . year } .{ date_stamp . month } .1" ,
136
137
}
137
138
app_dir = Path ("." ) / app_name
138
139
app_dir .mkdir ()
0 commit comments