Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15407

Add ability to indent velocity content in templates

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 9.11
    • Template API
    • None
    • Unknown

    Description

      Would be nice to be able to filter velocity content from VM files, similarly to what we do when using the {{velocity}} macro. This would allow use to indent velocity scripts.

      For example:

      #macro(panelhiddenheader $title)
        #panelheader($title, false, true)
      #end 
      

      Instead of:

      #macro(panelhiddenheader $title)
      #panelheader($title, false, true)
      #end 
      

      (note that right now if you indent you'll get some extra "<p> </p>")

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: