Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-547

GStringTemplate executes embadded Groovy code too early

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-beta-6
    • groovy-jdk
    • None

    Description

      When

      Dear "${firstname} ${lastname}",

      So nice to meet you in ${city}.

      <%
      if (value) {
      out << "See you in ${month},"
      } else {
      out << "farewell"
      }
      %>

      ${signed}

      is evaluated the ${month} value is printed before the rest of the template text.

      Attachments

        Activity

          People

            tug John Wilson
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: