[[Wayfinder? &startId=0]]
I believe the rule is they are required if you want to include whitespace in your tags, but this sure seems like a trivial example. I’ll look into it; BobRay, can you do the honors and post a task in Jira for this one?
I believe they’re going to always be required now, but I’m sure Jason will confirm shortly.
[[Snippet? ¶m=Ben&Jerry]]
[[Snippet? ¶m=`Ben&Jerry`]]
[[Snippet? ¶meter = `hello`]]
Quote from: rthrash at May 01, 2008, 10:54 PMI believe the rule is they are required if you want to include whitespace in your tags, but this sure seems like a trivial example. I’ll look into it; BobRay, can you do the honors and post a task in Jira for this one?
I believe they’re going to always be required now, but I’m sure Jason will confirm shortly.
I’m generally for bulletproof parsing that forgives user errors unless there’s a good reason to do it some other way but I wouldn’t mind requiring backticks.
IIRC, one of the first things that bit me in MODx was that this form didn’t work because of the spaces around the equals sign:
[[Snippet? ¶meter = `hello`]]
I don’t know if this will work in 0.9.7 but I think it probably should (though this is certainly no time to be messing with the parsing code).
For example:[[Foo? &parents=`1,2,3,4` ¶m=`Look at the cool extra-special characters & stuff = niceness, eh?` ¶m2=`[[another?snippet=`even with cached inside cached`]]` & question = `for Jason: will this line work?` ]]
It should not care about the whitespace, but I’m not positive about that last line at the moment; feel free to test it and report the results in JIRA if it does not. It can likely be remedied easily if it can’t handle it currently.
I don’t think the new parser is all that sensitive to whitespace outside of the backticks, hence you can split a call amongst multiple lines if memory serves me correct. Nice for reading some of those potentially crazy ditto or ajaxsearch configs.For example:
[[Foo? &parents=`1,2,3,4` ¶m=`Look at the cool extra-special characters & stuff = niceness, eh?` ¶m2=`[[another?snippet=`even with cached inside cached`]]` & question = `for Jason: will this line work?` ]]