Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66622

Custom mform template Mustache support

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: DEV backlog
    • Fix Version/s: None
    • Component/s: Forms Library
    • Labels:
      None

      Description

      Currently to use Mustache templates with a custom mform element it is required that the template be added to /lib/form/templates or to the appropriate template override location in the theme in use.

      This is a result of this line hard-coding the mustache template location. https://github.com/moodle/moodle/blob/master/lib/outputrenderers.php#L4602

      This makes it impossible to develop standalone elements without doing core hacks or tying it to a specific theme.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              dcocco Darren Cocco
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: