Grails
  1. Grails
  2. GRAILS-385

Taglibs: Add "sections" in "out" for "header", "body" and "bodyend"

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.3, 0.4
    • Fix Version/s: 3.0
    • Component/s: TagLib
    • Labels:
      None

      Description

      It would be nice to be able to have some sections to output HTML code in the "header", "body" or at the end of the body after the HTML to add some JavaScript.

      Something like

      out.header << "<script...> ... </script>"
      out.body << "<H3>...</H3>
      out.bodyend << "<script...> createYahooCalendar(); </script>"

        Activity

        Hide
        Graeme Rocher added a comment -

        Moving non-critical issues that aren't going to make it into 1.1 to 1.2

        Show
        Graeme Rocher added a comment - Moving non-critical issues that aren't going to make it into 1.1 to 1.2
        Hide
        Kurt Harriger added a comment -

        I was trying to append to the head section from within a template and/or taglib. I expected sitemesh would merge the head section from page and templates, but instead it apparently overwrites the page head with the template head. I found the following discussion on the mailing list that shows how append to the sitemesh content which should allow the user to achieve the desired results.

        http://grails.1312388.n4.nabble.com/multiple-content-tags-with-same-name-td1392557.html

        Show
        Kurt Harriger added a comment - I was trying to append to the head section from within a template and/or taglib. I expected sitemesh would merge the head section from page and templates, but instead it apparently overwrites the page head with the template head. I found the following discussion on the mailing list that shows how append to the sitemesh content which should allow the user to achieve the desired results. http://grails.1312388.n4.nabble.com/multiple-content-tags-with-same-name-td1392557.html

          People

          • Assignee:
            Unassigned
            Reporter:
            Fred Janon
          • Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development