Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-3008

Revise approach to savecontent

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 4.2.0.006
    • Fix Version/s: None
    • Labels:
      None

      Description

      See http://cfmlblog.adamcameron.me/2014/03/how-about-this-for-savecontent.html

      As discussed previously, I deeply dislike your script syntax for operations like savecontent (discussed in the article).

      I suggest a new approach:

      contentViaFunction = savecontent(function(){
          var decoratedDays = days.map(function(v){
              return "<li>#v#</li>";
          });
          writeOutput("<ul>#decoratedDays.toList('')#</ul>");
      });
      writeOutput(contentViaFunction);
      

      And deprecate the exists one.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: