http://dev.helma.org/bugs/show_bug.cgi?id=680 Summary: How do I render req.data["foo.bar"] as a macro?
Product: Helma
Version: CVS trunk
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: Web Support
AssignedTo:
helma-dev@...
ReportedBy:
interface@...
There are some APIs that require request parameters to be prefixed like
"foo.bar", e.g.
http://localhost/helma/api/?foo.bar=1&foo.foobar=2Now I am looking a way to render such parameters in a skin:
<% request.foo.bar %>
This, of course, does not work since bar is treated as a macro of foo.
<% request.foo_bar %>
Sure, this actually renders a parameter called foo_bar.
<% request[foo.bar] %>
Results in an [Unhandled macro: request[hub.url]]
Before I continue with trying too hilarious an idea, I’d rather pose the
question here.
And if there should be no possibility, yet, I am curious which one would be the
easiest to implement (if any).
Btw. the same problem arises e.g. with a call like renderSkin("main",
{"foo.bar": "Get me outta here!"});
--
Configure bugmail:
http://dev.helma.org/bugs/userprefs.cgi?tab=email------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev