added: mount option: html_template(file.html)

files: indexpatterns.h indexpatterns.cpp
removed: templates/index_root.html
        its content was moved to index.html


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@611 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-06-21 23:53:19 +00:00
parent 08f5865c72
commit 1e3f5e8695
22 changed files with 631 additions and 344 deletions

View File

@@ -101,7 +101,8 @@ Mount::ParamCode Mount::ParseParam(const char * param_name)
{ par_only_root_remove, "only_root_remove" },
{ par_emacs_on, "emacs_on" },
{ par_mkdir_on, "mkdir_on" },
{ par_app, "app" }
{ par_app, "app" },
{ par_html_template, "html_template" },
};
size_t i, len = sizeof(par_name_tab) / sizeof(ParName);
@@ -176,3 +177,15 @@ return false;
}
const std::string * Mount::HtmlTemplate() const
{
if( !param[par_html_template].defined )
return 0;
if( param[par_html_template].arg.size() != 1 )
return 0;
return & param[par_html_template].arg[0];
}