#4592 closed defect (fixed)
dtl : for tag don't resolve variable
Reported by: | guest | Owned by: | Neil Roberts |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Here is an example test that fails.
function test_tag_for_resolve(t){
var dd = dojox.dtl;
var context = new dd.Context({
list: {items: ["apple", "banana", "lemon"]}, unplugged: "Torrey"
}); var template = new dd.Template("{% for item in list.items %}{% cycle 'Hot' 'Diarrhea' unplugged 'Extra' %} Pocket. {% endfor %}"); t.is("Hot Pocket. Diarrhea Pocket. Torrey Pocket. ", template.render(context)); Make sure that it doesn't break on re-render t.is("Hot Pocket. Diarrhea Pocket. Torrey Pocket. ", template.render(context));
}
Attachments (1)
Change History (4)
Changed 13 years ago by
Attachment: | proposed_patch.diff added |
---|
comment:1 Changed 13 years ago by
Owner: | changed from anonymous to Neil Roberts |
---|---|
Status: | new → assigned |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Proposed patch