incorrect templates often just render as '' with no exception or other error

Bug #1053752 reported by James Westby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pybars
Triaged
Low
Unassigned

Bug Description

With a template like

  {{#if foo}}
    Something
  {{#else}}
    Something else
  {{/if}}

You get an empty string back when rendered. If you correct {{else}} then you get what
you would expect.

I didn't see any exception for a bad template, but maybe that's intentional?

Thanks,

James

Revision history for this message
Robert Collins (lifeless) wrote :

I've found it hard to reliably trigger an error on failed-to-consume-everything in the compiler.

Changed in pybars:
status: New → Triaged
importance: Undecided → Low
summary: - Mis-spelling {{else}} leads to an empty template
+ incorrect templates often just render as '' with no exception or other
+ error
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.