ildar-k
7/4/2019 - 8:12 AM

Classes, IDs, Attributes

//Id lisamiseks panen otsa trellid #id
//Klassi lisamiseks panen otsa punkti .class
h1#PageTitle PUG Template Engine Try-out
            p.intro. 
//Atribuudid panen sulgudesse
//Saan luua ka eraldis massiivi ning paigutada selle väärtused klassi
form(action="post")
                input(type="text")
                
            -const classes = ['class-1 class-2, -class-3']
            
            div(class=classes)
            
            - const myAttributes = {          "src":"myphoto.png", "alt": "this is my photo"
            }
            img&attributes(myAttributes)