-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.js
More file actions
executable file
·34 lines (28 loc) · 742 Bytes
/
Copy pathtest.js
File metadata and controls
executable file
·34 lines (28 loc) · 742 Bytes
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
import React from 'react'
import SubComponent from './SubComponent'
export default (props) => pug`
//- some comment
.Component
if props.showSubComponent
SubComponent.someClass(...props)
ul
for num, i in [1,2,3]
li(key=i)= num
` // Here will be JS commnet
// Here will be JS commnet
export default (props) => {
// Here will be JS commnet
return pug`
// Here will be HTML comment
//- some comment
.Component
if props.showSubComponent
SubComponent.someClass(...props)
ul
for num, i in [1,2,3]
li(key=i)= num
` // Here will be JS commnet
// Here will be JS commnet
}
// It doesn't work...
export default (props) => pug`.Component inline test`