Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created February 13, 2013 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalmiray/4944681 to your computer and use it in GitHub Desktop.
Save aalmiray/4944681 to your computer and use it in GitHub Desktop.
def html = """
<html>
<head><title>${params.title}</title></head>
<body>
${params.body}
</body>
</html>""".stripIndent(4)
def html2 = """|
|<html>
| <head><title>${params.title}</title></head>
| <body>
| ${params.body}
| </body>
|</html>""".stripMargin('|')
@nassim12000
Copy link

def html = """

<title>${params.title}</title>

${params.body}

""".stripIndent(4)

def html2 = """|
|
| <title>${params.title}</title>
|
| ${params.body}
|
|""".stripMargin('|')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment