Dynamic Document Template
Posted
by
ell
on Ask Ubuntu
See other posts from Ask Ubuntu
or by ell
Published on 2012-08-08T12:58:39Z
Indexed on
2012/11/25
23:23 UTC
Read the original article
Hit count: 258
I would like to create a "C++ Class" document template, I know you can make static ones by putting them into ~/Templates
, but I would like to be able for the content to change according to the file name on creation, for example, using a template like such (pseudocode):
#ifndef $(filename)_HPP_INCLUDED
#define $(filename)_HPP_INCLUDED
class $(filename) {
public:
}
#endif $(filename)_HPP_INCLUDED
Is this possible? If so, how can I do it? Thanks in advance, ell.
© Ask Ubuntu or respective owner