Skip to content

Commit

Permalink
make environment paths protected
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed May 29, 2022
1 parent 4566a20 commit defee6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions include/inja/environment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ namespace inja {
* \brief Class for changing the configuration.
*/
class Environment {
std::string input_path;
std::string output_path;

LexerConfig lexer_config;
ParserConfig parser_config;
RenderConfig render_config;

FunctionStorage function_storage;
TemplateStorage template_storage;

protected:
std::string input_path;
std::string output_path;

public:
Environment(): Environment("") {}

Expand Down
7 changes: 4 additions & 3 deletions single_include/inja/inja.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2723,16 +2723,17 @@ namespace inja {
* \brief Class for changing the configuration.
*/
class Environment {
std::string input_path;
std::string output_path;

LexerConfig lexer_config;
ParserConfig parser_config;
RenderConfig render_config;

FunctionStorage function_storage;
TemplateStorage template_storage;

protected:
std::string input_path;
std::string output_path;

public:
Environment(): Environment("") {}

Expand Down

0 comments on commit defee6f

Please sign in to comment.