Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2576

MagnoliaTemplatingUtilities: add createAttribute(name, value) which omits empty html attributes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Component/s: None
    • Labels:
      None

      Description

      In may places one would like to avoid empty attributes: class="" for instance. This utility method does only return an attribute string if the value is not empty.

        Attachments

          Activity

            People

            Assignee:
            pbaerfuss Philipp Bärfuss
            Reporter:
            pbaerfuss Philipp Bärfuss
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: