Opened 12 years ago

Closed 12 years ago

#4944 closed defect (fixed)

dojox.dtl has problems with extends and block tags

Reported by: guest Owned by: Neil Roberts
Priority: high Milestone:
Component: Dojox Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

Here an example test that fails:

var dd = dojox.dtl; var context = new dd.Context({

parent: {

url: dojo.moduleUrl("dojox.dtl.tests.text.templates", "pocket2.html")

}, items: ["apple", "banana", "lemon"]

}); template = new dd.Template('{% extends parent %}{% block pocket %}My {{ item }}{% endblock %}');

pocket2.html contains: {% for item in items %}({% block pocket %}Hot{% endblock %}) {% endfor %}Pocket t.is("(My apple) (My banana) (My lemon) Pocket", template.render(context));

Change History (2)

comment:1 Changed 12 years ago by Tom Trenka

Owner: changed from Tom Trenka to Neil Roberts

comment:2 Changed 12 years ago by Neil Roberts

Resolution: fixed
Status: newclosed

(In [12267]) Fixes #4943. Fixes #4944.

  • Block overrides couldn't always see each other
  • Buffer now carries block overrides
  • Test added
  • !strict
Note: See TracTickets for help on using tickets.