825
|
1 diff -r -u plustache-0.3.0.orig/include/template.hpp plustache-0.3.0/include/template.hpp
|
|
2 --- plustache-0.3.0.orig/include/template.hpp 2014-01-29 13:26:52.000000000 +0100
|
|
3 +++ plustache-0.3.0/include/template.hpp 2014-05-28 17:51:51.623305914 +0200
|
|
4 @@ -21,7 +21,7 @@
|
|
5 public:
|
|
6 template_t ();
|
|
7 template_t (std::string& tmpl_path);
|
|
8 - ~template_t ();
|
|
9 + virtual ~template_t ();
|
|
10 std::string render(const std::string& tmplate, const Context& ctx);
|
|
11 std::string render(const std::string& tmplate, const ObjectType& ctx);
|
|
12
|
|
13 @@ -42,11 +42,13 @@
|
|
14 std::string render_sections(const std::string& tmplate,
|
|
15 const Context& ctx);
|
|
16 std::string html_escape(const std::string& s);
|
|
17 - std::string get_partial(const std::string& partial) const;
|
|
18 void change_delimiter(const std::string& opentag,
|
|
19 const std::string& closetag);
|
|
20 void compile_data();
|
|
21 - std::string get_template(const std::string& tmpl);
|
|
22 +
|
|
23 + protected:
|
|
24 + virtual std::string get_partial(const std::string& partial) const;
|
|
25 + virtual std::string get_template(const std::string& tmpl);
|
|
26 };
|
|
27 } // namespace Plustache
|
|
28 #endif
|
|
29 Only in plustache-0.3.0/include: template.hpp~
|
|
30 diff -r -u plustache-0.3.0.orig/src/template.cpp plustache-0.3.0/src/template.cpp
|
|
31 --- plustache-0.3.0.orig/src/template.cpp 2014-01-29 13:26:52.000000000 +0100
|
|
32 +++ plustache-0.3.0/src/template.cpp 2014-05-28 17:51:32.599306393 +0200
|
|
33 @@ -126,7 +126,7 @@
|
|
34 // found a partial
|
|
35 else if (modifier == ">")
|
|
36 {
|
|
37 - std::string partial = template_t::get_partial(key);
|
|
38 + std::string partial = get_partial(key);
|
|
39 repl.assign(template_t::render(partial, ctx));
|
|
40 }
|
|
41 // normal tag
|
|
42 Only in plustache-0.3.0/src: template.cpp~
|