Newer
Older
#[cfg(test)]
pub const TEST_JSON_WEBSITE: &'static str = "
{
\"root_page\": {
\"template_name\": \"TEST TEMPLATE\",
\"metadata\": {
\"title\": \"TEST\",
\"description\": \"TEST DESCRIPTION\",
\"image\": \"https://test/static/images/test.png\",
\"css\": [],
\"lang\":\"en\",
\"js\": [],
\"url_slug\": \"\"
},
\"body\": [
{
}
],
\"sub_pages\": [
{
\"template_name\": \"TEST TEMPLATE\",
\"metadata\": {
\"title\": \"TEST SUBPAGE\",
\"description\": \"TEST DESCRIPTION SUBPAGE\",
\"image\": \"https://test/static/images/test.png\",
\"css\": [],
\"lang\":\"en\",
\"js\": [],
\"url_slug\": \"subpage\"
},
\"body\": [
{
}
],
\"sub_pages\": [
{
\"template_name\": \"TEST TEMPLATE\",
\"metadata\": {
\"title\": \"TEST NESTTED\",
\"description\": \"TEST DESCRIPTION NESTED\",
\"image\": \"https://test/static/images/test.png\",
\"css\": [],
\"js\": [],
\"url_slug\": \"nested\",
\"lang\":\"en\"
},
\"body\": [
\"assets_index\": {
\"images\": [],
\"sounds\": [],
\"videos\": [],
\"docs\": [],
\"source_code\": []
},
\"templates\": [
\"name\": \"TEST TEMPLATE\",
\"layout\": {
\"display\": \"grid\"