[pug/en] Fix style attribute syntax error (#4653)

This commit is contained in:
Imran Khan 2024-05-13 12:32:44 +05:30 committed by GitHub
parent 47b3e24c00
commit f6f88843aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -84,8 +84,8 @@ div(class=meineKlasse)
//- JS Stil //- JS Stil
- const meineStile = {'color':'white', 'background-color':'blue'} - const meineStile = {'color':'white', 'background-color':'blue'}
div(styles=meineStile) div(style=meineStile)
//- <div styles="{&quot;color&quot;:&quot;white&quot;,&quot;background-color&quot;:&quot;blue&quot;}"></div> //- <div style="color:white;background-color:blue;"></div>
//- JS Attributte //- JS Attributte
- const meineAttribute = {"src": "foto.png", "alt": "meine Bilder"} - const meineAttribute = {"src": "foto.png", "alt": "meine Bilder"}

View File

@ -80,8 +80,8 @@ div(class=myClass)
//- JS Styles //- JS Styles
- const myStyles = {'color':'white', 'background-color':'blue'} - const myStyles = {'color':'white', 'background-color':'blue'}
div(styles=myStyles) div(style=myStyles)
//- <div styles="{&quot;color&quot;:&quot;white&quot;,&quot;background-color&quot;:&quot;blue&quot;}"></div> //- <div style="color:white;background-color:blue;"></div>
//- JS Attributes //- JS Attributes
- const myAttributes = {"src": "photo.png", "alt": "My Photo"} - const myAttributes = {"src": "photo.png", "alt": "My Photo"}