-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdev.js
60 lines (50 loc) · 1.44 KB
/
dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const arrowFunction = ({value}) => `
<div class="some-class">
<style>h1{color: lime;}</style>
<h1>Hello World!</h1>
<script>console.log('Hello World')</script>
<div>${value}</div>
</div>
`
const assignment = `
<div class="some-class">
<style>h1{color: blue;}</style>
<h1>Hello World!</h1>
<script>console.log('Hello World')</script>
<div>${value}</div>
</div>
`
const tagFunction = anyTagFn `
<div class="some-class">
<style>h1{color: pink;}</style>
<h1>Hello World!</h1>
<script>console.log('Hello World')</script>
<div>${value}</div>
</div>
`
const commentFollowedBySpace = /*any-comment*/ `
<div class="some-class">
<style>h1{color: brown;}</style>
<h1>Hello World!</h1>
<script>console.log('Hello World')</script>
<div>${value}</div>
</div>
`
const disableWithCommentNoSpace = /**/`
<div class="some-class">
<style>h1{color: lime;}</style>
<h1>Hello World!</h1>
<script>console.log('Hello World')</script>
<div>${value}</div>
</div>
`
const disableInlineWithCommentNoSpace = /**/`<This is a regular string> ${abc}`
const regularTLString = `A string without markup will be the color of HTML text <> ${abc}`
console.log(`<h1>Hello World!</h1>`)
console.log(
`<h1>Hello World!</h1>`
)
dotNotation[`<p>Test.</p>`]
{
`<span>VSCode Template Literals</span>`
}