{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/nunjucks/issues/1151","repository_url":"https://api.github.com/repos/mozilla/nunjucks","labels_url":"https://api.github.com/repos/mozilla/nunjucks/issues/1151/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/nunjucks/issues/1151/comments","events_url":"https://api.github.com/repos/mozilla/nunjucks/issues/1151/events","html_url":"https://github.com/mozilla/nunjucks/issues/1151","id":359681779,"node_id":"MDU6SXNzdWUzNTk2ODE3Nzk=","number":1151,"title":"[Question] Multiline variable strings?","user":{"login":"oleersoy","id":1163873,"node_id":"MDQ6VXNlcjExNjM4NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/1163873?v=4","gravatar_id":"","url":"https://api.github.com/users/oleersoy","html_url":"https://github.com/oleersoy","followers_url":"https://api.github.com/users/oleersoy/followers","following_url":"https://api.github.com/users/oleersoy/following{/other_user}","gists_url":"https://api.github.com/users/oleersoy/gists{/gist_id}","starred_url":"https://api.github.com/users/oleersoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleersoy/subscriptions","organizations_url":"https://api.github.com/users/oleersoy/orgs","repos_url":"https://api.github.com/users/oleersoy/repos","events_url":"https://api.github.com/users/oleersoy/events{/privacy}","received_events_url":"https://api.github.com/users/oleersoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T22:56:37Z","updated_at":"2018-09-12T22:56:37Z","closed_at":null,"author_association":"NONE","body":"Wondering if it's possible to do declare multiline variables - essentially backticks in javascript - (Pseudo code):\r\n\r\n```\r\nlet html = `<div class=\"TestHeader \">\r\n    <span class=\"TestCounter\"></span>\r\n    <span class=\"TestComponent\">TestBoxLeft</span>\r\n  </div>`\r\n```\r\nI'm essentially trying to do something like this, but sometimes the html strings are quite long:\r\n\r\n```\r\n{% import \"templates/m2.njk\" as m2 %}\r\n{% set ts1 = '<a href=\"http://www.example.com\">lorem ipsum</a>' %}\r\n\r\n{% call m2.content( ts1 ) %}\r\n  <div class=\"TestHeader \">\r\n    <span class=\"TestCounter\"></span>\r\n    <span class=\"TestComponent\">TestBoxLeft</span>\r\n  </div>\r\n{% endcall %}\r\n```\r\n\r\n"}}
{"actor":{"display_login":"oleersoy"}}