mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[pug/en] Fix style attribute syntax error (#4653)
This commit is contained in:
parent
47b3e24c00
commit
f6f88843aa
@ -84,8 +84,8 @@ div(class=meineKlasse)
|
||||
|
||||
//- JS Stil
|
||||
- const meineStile = {'color':'white', 'background-color':'blue'}
|
||||
div(styles=meineStile)
|
||||
//- <div styles="{"color":"white","background-color":"blue"}"></div>
|
||||
div(style=meineStile)
|
||||
//- <div style="color:white;background-color:blue;"></div>
|
||||
|
||||
//- JS Attributte
|
||||
- const meineAttribute = {"src": "foto.png", "alt": "meine Bilder"}
|
||||
|
@ -80,8 +80,8 @@ div(class=myClass)
|
||||
|
||||
//- JS Styles
|
||||
- const myStyles = {'color':'white', 'background-color':'blue'}
|
||||
div(styles=myStyles)
|
||||
//- <div styles="{"color":"white","background-color":"blue"}"></div>
|
||||
div(style=myStyles)
|
||||
//- <div style="color:white;background-color:blue;"></div>
|
||||
|
||||
//- JS Attributes
|
||||
- const myAttributes = {"src": "photo.png", "alt": "My Photo"}
|
||||
|
Loading…
Reference in New Issue
Block a user