1 // vim: set expandtab tabstop=4 shiftwidth=4:
12 int main(int argc, char* argv[]) {
20 cout << "Parser example:" << endl;
21 cout << "===============" << endl;
24 parser.parse_file(file);
25 // Text is returned in utf-8 encoding.
26 cout << parser.root->render(tpl) << endl;
27 } catch (exception e) {
28 cerr << "Error: " << e.what() << endl;
31 cerr << "Error: " << e << endl;