A method and system for an extensible macro language is provided. The
system for providing the extensible macro language includes a parser and
a macro handler for processing macro commands not previously defined in
the macro language. The parser analyzes keywords in a macro language
expression and recognizes one or more keywords representing macro
commands that were not previously defined in the macro language. The
macro handler receives the keywords in the macro expression and retrieves
from a registry of keywords, an executable code or procedure associated
with the keyword. The executable code is run to process the macro command
represented by the keyword. The template language registry may be
augmented to include any keywords and associated codes for extending the
macro language.