mirror of https://github.com/kiwix/libkiwix.git
Moved OPDS templates under static/templates
This commit is contained in:
parent
dd60235010
commit
78083f1f4a
|
@ -98,7 +98,7 @@ string OPDSDumper::dumpOPDSFeed(const std::vector<std::string>& bookIds, const s
|
||||||
{"books", bookData }
|
{"books", bookData }
|
||||||
};
|
};
|
||||||
|
|
||||||
return render_template(RESOURCE::catalog_entries_xml, template_data);
|
return render_template(RESOURCE::templates::catalog_entries_xml, template_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
string OPDSDumper::dumpOPDSFeedV2(const std::vector<std::string>& bookIds, const std::string& query) const
|
string OPDSDumper::dumpOPDSFeedV2(const std::vector<std::string>& bookIds, const std::string& query) const
|
||||||
|
@ -117,7 +117,7 @@ string OPDSDumper::dumpOPDSFeedV2(const std::vector<std::string>& bookIds, const
|
||||||
{"books", bookData }
|
{"books", bookData }
|
||||||
};
|
};
|
||||||
|
|
||||||
return render_template(RESOURCE::catalog_v2_entries_xml, template_data);
|
return render_template(RESOURCE::templates::catalog_v2_entries_xml, template_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string OPDSDumper::categoriesOPDSFeed(const std::vector<std::string>& categories) const
|
std::string OPDSDumper::categoriesOPDSFeed(const std::vector<std::string>& categories) const
|
||||||
|
@ -135,7 +135,7 @@ std::string OPDSDumper::categoriesOPDSFeed(const std::vector<std::string>& categ
|
||||||
}
|
}
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
RESOURCE::catalog_v2_categories_xml,
|
RESOURCE::templates::catalog_v2_categories_xml,
|
||||||
kainjow::mustache::object{
|
kainjow::mustache::object{
|
||||||
{"date", now},
|
{"date", now},
|
||||||
{"endpoint_root", rootLocation + "/catalog/v2"},
|
{"endpoint_root", rootLocation + "/catalog/v2"},
|
||||||
|
|
|
@ -68,7 +68,7 @@ std::unique_ptr<Response> InternalServer::handle_catalog_v2_root(const RequestCo
|
||||||
{
|
{
|
||||||
return ContentResponse::build(
|
return ContentResponse::build(
|
||||||
*this,
|
*this,
|
||||||
RESOURCE::catalog_v2_root_xml,
|
RESOURCE::templates::catalog_v2_root_xml,
|
||||||
kainjow::mustache::object{
|
kainjow::mustache::object{
|
||||||
{"date", gen_date_str()},
|
{"date", gen_date_str()},
|
||||||
{"endpoint_root", m_root + "/catalog/v2"},
|
{"endpoint_root", m_root + "/catalog/v2"},
|
||||||
|
|
|
@ -36,9 +36,9 @@ templates/head_taskbar.html
|
||||||
templates/taskbar_part.html
|
templates/taskbar_part.html
|
||||||
templates/external_blocker_part.html
|
templates/external_blocker_part.html
|
||||||
templates/captured_external.html
|
templates/captured_external.html
|
||||||
|
templates/catalog_entries.xml
|
||||||
|
templates/catalog_v2_root.xml
|
||||||
|
templates/catalog_v2_entries.xml
|
||||||
|
templates/catalog_v2_categories.xml
|
||||||
opensearchdescription.xml
|
opensearchdescription.xml
|
||||||
catalog_entries.xml
|
|
||||||
catalog_v2_root.xml
|
|
||||||
catalog_v2_entries.xml
|
|
||||||
catalog_v2_categories.xml
|
|
||||||
catalog_v2_searchdescription.xml
|
catalog_v2_searchdescription.xml
|
||||||
|
|
Loading…
Reference in New Issue