Move data model to separate submodule

pull/8/head
Subhomoy Haldar 2023-04-01 11:21:17 +01:00
parent 17477e4cad
commit 831a23b491
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
module whisker
module datamodel
import x.json2
@ -27,7 +27,7 @@ pub fn (data DataModel) str() string {
result_node := data.to_json_node() or { json2.null }
result := result_node.prettify_json_str()
return if !result.contains_any('{}') {
'{\n${whisker.data_indent}".": ${result}\n}'
'{\n${datamodel.data_indent}".": ${result}\n}'
} else {
result
}