Removed templates from lxs-namespace

This commit is contained in:
Thomas Avé 2017-01-20 13:05:44 +01:00
parent 08b3d0b887
commit 19f50d6cdc
3 changed files with 6 additions and 10 deletions

View File

@ -7,7 +7,6 @@
#include <vector>
#include <mstch/mstch.hpp>
namespace lxs {
namespace templ {
/**
* A changeable information structure for templates
@ -58,6 +57,5 @@ namespace templ {
};
} //namespace templ
} //namespace lxs
#endif //LEXESIS_TEMPLATE_H

View File

@ -6,16 +6,16 @@
namespace {
//Some shortcut utility functions for creating a TemplateContext
lxs::templ::TemplateContext make_map_elem(std::string key, std::string value) {
return lxs::templ::make_map({{key, lxs::templ::make_string(value)}});
templ::TemplateContext make_map_elem(std::string key, std::string value) {
return templ::make_map({{key, templ::make_string(value)}});
}
lxs::templ::TemplateContext make_int(int i) {
return lxs::templ::make_string(std::to_string(i));
templ::TemplateContext make_int(int i) {
return templ::make_string(std::to_string(i));
}
lxs::templ::TemplateContext make_State(lxs::State i) {
return lxs::templ::make_string(std::to_string(i));
templ::TemplateContext make_State(lxs::State i) {
return templ::make_string(std::to_string(i));
}
}

View File

@ -5,7 +5,6 @@
#include <string>
#include <sstream>
namespace lxs {
namespace templ {
TemplateContext make_string(std::string _string) {
@ -36,4 +35,3 @@ namespace templ {
out << mstch::render(tmplt.str(),context);
}
}
}