Quote from: rthrash at Nov 09, 2005, 06:40 AM
Now that looks great Raymond!
In the other page example above, can you explain the preprocessors a little and how they work?
Ok maybe preprocessor was not the right word to use but I could not come up with anything else.
The general idea here is that these special placeholders such as [+lang:+] will be be parsed as normal placeholders would but they would return the value from some predefined process.
For example, the [+lang:{name}+] placeholder will return the language for the given {name}.
When the parser encounters the [+lang:login_message+] placeholder it will look up the language key (or name) "login_message" and then return the following to replace the placeholder:
Please enter your login credentials to start your Manager session. Your username and password are case-sensitive, so please enter them carefully!
When the parser sees the [+site:email_address+] it would then lookup the site settings "email_address" and return that value.
Whenever it encounters the [+trig:OnFormPrerender+] placholder it will trigger the event "OnFormPrerender" and return the output from the event.
What do you think?