Opened 9 years ago

Closed 6 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:


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 [
], (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 6 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given the lack of attention to this ticket, we would accept a pull request. Closing as patchwelcome.

Note: See TracTickets for help on using tickets.