Hi,
As an installment towards QuickBook-Lit, we now have
templates...
Templates provide a more versatile text substitution
mechanism. Templates come in handy when you need to
create parameterizable, multi-line, boilerplate text
that you specify once and expand many times. Templates
accept one or more arguments. These arguments act like
place-holders for text replacement. Unlike simple macros,
which are limited to phrase level markup, templates can
contain block level markup (e.g. paragraphs, code blocks
and tables).
Example template:
[template person(name_, age_, id_)
Hi, my name is name_. I am age_ years old. My id is id_.
]
Template formal arguments are identifiers consisting of
an initial alphabetic character or the underscore, followed
by zero or more alphanumeric characters or the underscore.
This is similar to your typical C/C++ identifier. A template
formal argument temporarily hides a macro of the same name
at the point where the template is invoked. At template
invocation, you supply the actual arguments. At that point,
the template will be expanded with your supplied arguments.
Example:
person(James Bond, 39, 007)
person(Santa Clause, 87, 12-25)
Enjoy!
Regards,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests:
https://lists.sourceforge.net/lists/listinfo/boost-docs