Forum OpenACS Development: Re: ad_form and [] in options

Collapse
Posted by Rocael Hernández Rizzardini on
Right, we have detected the same problem. Probably one good solution is to have specific notation for interpret things (for instance [__ means actually execute the proc inside), and everything else should not be executed.
regsub will make the things harder to maintain since there are many cases.

[_ should be allowed as well for i18n.

Collapse
Posted by Malte Sussdorff on
So, should we form a TIP around this, stating that anything starting with "[__" will be executed, as will "[_" but nothing else? And if yes, would removing the "subst" be enough?
Collapse
Posted by Gustaf Neumann on
another option is to provide options to [_ ...], such as [_ -subst ....] or even provide the options of subst as options to _ (whoa, a sentence with 4 options).