allow to use multiple directories in html and txt templates
remove from the config: templates_dir, templates_dir_default, txt_templates_dir, txt_templates_dir_default add to the config: html_templates_dirs - a list of directories with html templates txt_templates_dirs - a list of directories with txt templates We search from the last directory to the first one.
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
* Author: Tomasz Sowa <t.sowa@ttmath.org>
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011-2018, Tomasz Sowa
|
||||
/*
|
||||
* Copyright (c) 2011-2026, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -53,7 +53,8 @@ public:
|
||||
Patterns();
|
||||
|
||||
void SetDeleteWhiteItems(bool del_white);
|
||||
void SetDirectories(const std::wstring & tmpl_dir, const std::wstring & tmpl_dir_def);
|
||||
void SetDirectories(const std::vector<std::wstring> & tmpl_dirs);
|
||||
void ClearDirectories();
|
||||
|
||||
/*
|
||||
setting locale and locale_filter
|
||||
@@ -151,7 +152,7 @@ public:
|
||||
private:
|
||||
|
||||
bool del_white_items;
|
||||
std::wstring templates_dir, templates_dir_def;
|
||||
std::vector<std::wstring> templates_dirs;
|
||||
Locale * locale;
|
||||
LocaleFilter * locale_filter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user