Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@abilogos
Last active February 13, 2021 15:27
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 abilogos/8cbae9d665bfdfca1f50d68bd78bb1f7 to your computer and use it in GitHub Desktop.
Save abilogos/8cbae9d665bfdfca1f50d68bd78bb1f7 to your computer and use it in GitHub Desktop.
A Template to have Multiline String without appending strings
//its a js hack for having multiline string like python`s ''' multi line '''
//source: https://tomasz.janczuk.org/2013/05/multi-line-strings-in-javascript-and.html
var html = (function () {/*
multiline with
white spaces
and newlines
*/}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1];
@abilogos
Copy link
Author

abilogos commented Feb 13, 2021

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