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

Mustache templates which are 'partials' should not show up in template library

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: HTML and CSS
    • Labels:
      None
    • Affected Branches:
      MOODLE_32_STABLE

      Description

      There are some templates which are partials and so can't show up properly in the template library without the surrounding context, or being included in their parent.

      e.g. blocks/rss_client/templates/item.mustache

      We could do with a way to indicate that these templates should:
      a) Not show up in the template library
      b) Not be expected to be valid html by cibot

      Perhaps we could add some metadata such as 'this partial is part of x template' to achieve that, or any other ideas.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                poltawski Dan Poltawski
                Participants:
                Component watchers:
                Amy Groshek, David Scotson, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: