Feature Proposal: Include Parameters With Default
Motivation
The
ParameterizedIncludes is a powerful feature to build a library of components. Dynamic behavior can be done by supplying parameters to INCLUDEs. There is currently no easy way to take action on optional parameters. The new
ParameterizedVariables feature supports defaults, so does
VarURLPARAM. This proposals adds a defaults to parameters passed to INCLUDEs.
Description and Documentation
When you do this:
%INCLUDE{ "Library" section="alertbox" title="Hello" message="This is a test." }%
You typically have a
%title% and
%message% in the
alertbox section to show the title and message, respectively. This proposal adds optional defaults to these variables, such as
%title{ default="Alert!" }% and
%message{ default="Please specify a message parameter" }%
Impact
Implementation
--
Contributors: PeterThoeny - 2011-04-05
Discussion
This proposal is now accepted by the 7 days review period.
--
PeterThoeny - 2011-04-13
This is now implemented and documented in
SVN trunk. See
VarINCLUDE,
IncludeTopicsAndWebPages.
--
PeterThoeny - 2011-04-14