2009/7/1 Edwin Grubbs <email address hidden>:
> I guess my example was too simple to explain the problem I am having.
> Here is a better one.
>
> <script tal:content="string: do_something('${foo}', '${bar}', '${baz}')"
> />
>
> As you can see, I would have to have an alternate string for each
> combination of variables that could be undefined.
I think it's an abuse, but I see the general issue and actually I've
had this problem myself, something like:
2009/7/1 Edwin Grubbs <email address hidden>: "string: do_something( '${foo} ', '${bar}', '${baz}')"
> I guess my example was too simple to explain the problem I am having.
> Here is a better one.
>
> <script tal:content=
> />
>
> As you can see, I would have to have an alternate string for each
> combination of variables that could be undefined.
I think it's an abuse, but I see the general issue and actually I've
had this problem myself, something like:
<span tal:attributes= "string: ${some_ class} ${maybe_ some_content_ type | nothing} ">...</ span>
contenttype-
The second part should ideally be left out entirely, if not defined. Perhaps:
<span tal:attributes= "string: ${some_ class} contenttype- ${maybe_ some_content_ type} | nothing} ">...</ span>
${string:
could work?