Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-1628

Comment in UIPortalApplication.gtmpl is rendered in HTML response

    Details

      Description

      When sending request to portal, I am seeing this at the beginning of HTML response:

      <script type="text/javascript">
      // This variable must be used only to initialize other variables otherwise
      // please use eXo.env.portal.context or eXo.env.portal.context instead
      // Those 2 last variables cannot be used to initialize variables because
      // we cannot be sure that they will be initialized before initializing your script
      var currentContext = '/portal' ;
      </script>

      I wonder if it's possible to enclose the comment in groovy template within <% %> so that it won't be rendered in HTML? It can save us around 300 characters in each non-ajax HTML response.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vstorm83 Vu Viet Phuong
                  Reporter:
                  mposolda Marek Posolda
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 30 minutes
                    30m
                    Remaining:
                    Remaining Estimate - 30 minutes
                    30m
                    Logged:
                    Time Spent - Not Specified
                    Not Specified