pixsy/node_modules/pug-lexer/test/cases/attrs-data.pug

8 lines
231 B
Plaintext
Raw Normal View History

2017-12-22 17:22:08 +00:00
- var user = { name: 'tobi' }
foo(data-user=user)
foo(data-items=[1,2,3])
foo(data-username='tobi')
foo(data-escaped={message: "Let's rock!"})
foo(data-ampersand={message: "a quote: " this & that"})
foo(data-epoc=new Date(0))