Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-148

allow for multi-line string literals / macro parameters arguments similar to m4

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3-rc1
    • None
    • Engine
    • None
    • Operating System: other
      Platform: Other
    • 17803

    Description

      From: Ralf Hauser [ralfhauser@gmx.ch]
      To: Geir Magnusson Jr.
      Cc: velocity-user@jakarta.apache.org; billb@progress.com;
      didge@foundrylogic.com
      Subject: RE: Allowing NEWLINE in #set for readability

      Geir,

      Thanks for the quick answer. The below with the "+"es looks doable. I am about
      to convert to velocity/vpp coming from m4
      (http://www.gnu.org/manual/m4-1.4/m4.html).
      m4's commenting structure with a different begin ` and end ' syntax is very
      convenient for nesting and handles newlines very conveniently. Conversely to
      Bill's quoting proposal with single quotes etc., (see also
      http://jakarta.apache.org/velocity/user-guide.html#Velocimacro%20Miscellany), I
      suggest that text inside such quotes still gets rendered.

      Bill had further ideas (e.g. a "connect" directive) on the vpp mailing list -->
      see http://sourceforge.net/mailarchive/message.php?msg_id=4015929.

      Thx r.
      > ----Original Message----
      > From: Geir Magnusson Jr. geirm@optonline.net
      > Sent: Samstag, 1. März 2003 00:24
      > To: hauser@acm.org
      > Subject: Re: Allowing NEWLINE in #set for readability
      >
      > > Geir,
      > >
      > > over a year ago
      > >
      (http://archives.apache.org/eyebrowse/ReadMsg?listName=velocity-user@jakarta.apache.org&msgNo=5879),
      you hinted at this being potentially
      > > possible; I am
      > > now using velocity-dep-1.3.1-rc2.jar and get the below. Does this mean
      > > velocity still doesn't support
      > > multi-line string literals?
      >
      > no, not yet. We were trying to come to some conclusion for string cat,
      > so you could do
      >
      > #set($foo = "foo " +
      > "bar"
      > + "woogie")
      >
      > which would make you happy?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ralfhauser Ralf Hauser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: