$ erubis -l cpp example.ecpp #line 1 "example.ecpp" #include #include #include int main(int argc, char *argv[]) { std::stringstream _buf; _buf << "\n" " \n" "

Hello "; _buf << (argv[0]); _buf << "!

\n" " \n" " \n"; for (int i = 1; i < argc; i++) { _buf << " \n" " \n" " \n" " \n"; } _buf << " \n" "
"; _buf << (i); _buf << ""; _buf << (argv[i]); _buf << "
\n" " \n" "\n"; std::string output = _buf.str(); std::cout << output; return 0; }