Commit 78568c5f authored by jan.koester's avatar jan.koester
Browse files

test

parent 6ecb32f9
Loading
Loading
Loading
Loading
+4 −0
Changes for plugins/template/template.cpp: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
#include <regex>

#include <htmlpp/html.h>
#include <htmlpp/exception.h>

#include <dbpp/database.h>

@@ -433,6 +434,9 @@ namespace blogi {
                            libhtmlpp::HtmlElement *el=curpage->getElementbyID(res[i][1]);
                            if(el)
                                el->appendChild(buf.parse());
                        } catch(libhtmlpp::HTMLException &e) {
                            std::cerr << "template: Rendering layer '" << res[i][1]
                                      << "' HTML error: " << e.what() << std::endl;
                        } catch(const std::exception &e) {
                            std::cerr << "template: Rendering layer '" << res[i][1]
                                      << "' error: " << e.what() << std::endl;