Patch for _get tag to be able to return default body content
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Undecided
|
Unassigned | |||
1.1 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Current _get tag does not accept body closure as a default content. Please could you modify this tag or add new _getDefault tag according to my solution ?
Current ORIGINAL _get tag:
public static void _get(Map args, Closure body, PrintWriter out, ExecutableTemplate template, int fromLine) {
Object name = args.get("arg");
if (name == null) {
throw new TemplateExecuti
}
Object value = Template.
if (value != null) {
}
}
My MODIFIED _get tag:
public static void _getDefalt(Map args, Closure body, PrintWriter out, ExecutableTemplate template, int fromLine) {
Object name = args.get("arg");
if (name == null) {
throw new TemplateExecuti
}
Object value = Template.
if (value != null) {
// MODIFICATION
String strOut = Template.
// nothing was retrieved via get -> print a default body
}
}
}
Changed in play: | |
status: | New → Confirmed |
Changed in play: | |
status: | Confirmed → Fix Committed |