Opened 8 years ago
Closed 5 years ago
#16899 closed defect (patchwelcome)
Load definition before loading the template
Reported by: | Marten Lienen | Owned by: | Ed Chatelain |
---|---|---|---|
Priority: | undecided | Milestone: | 1.13 |
Component: | DojoX App | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
At the moment the view definition is loaded last, but it would be really useful if it was mixed in before the templated was parsed, so that you could overwrite templateString in the definition.
I need this because I load jade templates and apply some i18n, so my view definitions look like:
define [ "./templates/LoginPage" "dojo/i18n!./nls/LoginPage" "dojox/mobile/Heading" "dojox/mobile/TextBox" "dojox/mobile/Button" ], (template, translations) -> { templateString: template(t: translations) init: -> console.log "init" }
Oh, that is coffeescript btw, but you should get the point.
Change History (1)
comment:1 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Given the lack of attention to this ticket, we would accept a pull request. Closing as patchwelcome.