Closed GoogleCodeExporter closed 8 years ago
The hasData() function exists precisely for this case.
See http://code.google.com/closure/templates/docs/concepts.html#functions
Specifically in your case, rewrite it as
{if hasData() and $checked}...{/if}
Original comment by kai.hu...@gmail.com
on 18 Oct 2011 at 7:52
Sure, that's another workaround. It's still in some sense breaking an
abstraction, exposing a difference between templates with zero required
arguments and templates with one required argument. It would be cleaner if the
workaround were not required.
Original comment by jacobly@google.com
on 18 Oct 2011 at 8:40
Yes, it's something we probably should fix eventually, though not super high
priority.
Original comment by kai.hu...@gmail.com
on 21 Oct 2011 at 12:25
Original issue reported on code.google.com by
jacobly@google.com
on 18 Oct 2011 at 7:45