[prev in list] [next in list] [prev in thread] [next in thread]
List: interchange-users
Subject: Re: [ic] quoted=1 and |pipes|
From: Grant <emailgrant () gmail ! com>
Date: 2009-04-08 19:12:22
Message-ID: 49bf44f10904081212m779c8b5n4d680f0d58b54fc2 () mail ! gmail ! com
[Download RAW message or body]
>> [tmpn values]|value1| |value2| |value3|[/tmpn]
>> [loop list="[scratch values]" quoted=1]
>> ...stuff...
>> [/loop]
>
> Grant:
>
> The loop parser uses Text::ParseWords::shellwords() to handle this, so
> the code for what constitutes a delimiter is embedded in a CPAN module.
>
> But if you escape embedded quotes in your values then it should
> resolve OK.
>
> The following:
> <html>
> <body>
> [loop quoted=1 list=|plain-value "quoted value" "value with \"embedded
> \" quotes"| ]
> my code is : [loop-code]<br/>
> [/loop]
> </body>
> </html>
>
> Gives:
> my code is : plain-value
> my code is : quoted value
> my code is : value with "embedded" quotes
>
> Regards,
> Carl
Thanks Carl. Escaping the quotes did prevent IC from getting confused
as to where the delimiter quotes are, but the \ character doesn't get
stripped out as it does in your example. Do you know why that is
happening?
- Grant
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic