Removed templates from lxs-namespace
This commit is contained in:
		
							parent
							
								
									08b3d0b887
								
							
						
					
					
						commit
						19f50d6cdc
					
				|  | @ -7,7 +7,6 @@ | ||||||
| #include <vector> | #include <vector> | ||||||
| #include <mstch/mstch.hpp> | #include <mstch/mstch.hpp> | ||||||
| 
 | 
 | ||||||
| namespace lxs { |  | ||||||
| namespace templ { | namespace templ { | ||||||
|     /**
 |     /**
 | ||||||
|      * A changeable information structure for templates |      * A changeable information structure for templates | ||||||
|  | @ -58,6 +57,5 @@ namespace templ { | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
| } //namespace templ
 | } //namespace templ
 | ||||||
| } //namespace lxs
 |  | ||||||
| 
 | 
 | ||||||
| #endif //LEXESIS_TEMPLATE_H
 | #endif //LEXESIS_TEMPLATE_H
 | ||||||
|  |  | ||||||
|  | @ -6,16 +6,16 @@ | ||||||
| namespace { | namespace { | ||||||
|     //Some shortcut utility functions for creating a TemplateContext
 |     //Some shortcut utility functions for creating a TemplateContext
 | ||||||
|      |      | ||||||
|     lxs::templ::TemplateContext make_map_elem(std::string key, std::string value) { |     templ::TemplateContext make_map_elem(std::string key, std::string value) { | ||||||
|         return lxs::templ::make_map({{key, lxs::templ::make_string(value)}}); |         return templ::make_map({{key, templ::make_string(value)}}); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     lxs::templ::TemplateContext make_int(int i) { |     templ::TemplateContext make_int(int i) { | ||||||
|         return lxs::templ::make_string(std::to_string(i)); |         return templ::make_string(std::to_string(i)); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     lxs::templ::TemplateContext make_State(lxs::State i) { |     templ::TemplateContext make_State(lxs::State i) { | ||||||
|         return lxs::templ::make_string(std::to_string(i)); |         return templ::make_string(std::to_string(i)); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5,7 +5,6 @@ | ||||||
| #include <string> | #include <string> | ||||||
| #include <sstream>  | #include <sstream>  | ||||||
| 
 | 
 | ||||||
| namespace lxs { |  | ||||||
| namespace templ { | namespace templ { | ||||||
| 
 | 
 | ||||||
|     TemplateContext make_string(std::string _string) { |     TemplateContext make_string(std::string _string) { | ||||||
|  | @ -36,4 +35,3 @@ namespace templ { | ||||||
|         out << mstch::render(tmplt.str(),context); |         out << mstch::render(tmplt.str(),context); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue