1 // vim: set expandtab tabstop=4 shiftwidth=4:
11 const string indent = " ";
13 vars["NOMBRE"] = "Luca man";
16 cout << "HIT example:" << endl;
17 cout << "============" << endl;
19 cout << indent << h.parse("test", vars) << endl << endl << endl;
21 cout << "GHIT example:" << endl;
22 cout << "=============" << endl;
23 vars["NOMBRE"] = "Pedro";
26 cout << "We are using the default group: '" << g.getGroup() << "'." << endl;
27 cout << indent << g.parse("test", vars) << endl;
28 g.pushGroup("tpldir");
29 cout << "We start using the '" << g.getGroup() << "' group." << endl;
30 cout << indent << g.parse("test2", vars) << endl;
31 cout << "We stop using '";
32 cout << g.popGroup() << "' group, and go back to default one ('";
33 cout << g.getGroup() << "')." << endl;
34 cout << indent << g.parse("test", vars) << endl << endl << endl;
36 cout << "CHIT example:" << endl;
37 cout << "=============" << endl;
40 for (int i = n; i < (n+10); i++) {
41 stringstream ssi, ssc;
44 vars["NOMBRE"] = "Chit gay " + ssc.str();
45 vars["EDAD"] = ssi.str();
46 cout << indent << c.parse("test", vars) << endl;