lec 3 done
This commit is contained in:
12
lectures/lec4/part2/task6.pug
Normal file
12
lectures/lec4/part2/task6.pug
Normal file
@@ -0,0 +1,12 @@
|
||||
mixin createList(listType, items, tag)
|
||||
- var dispListType = "ul"
|
||||
- if (listType == "ol")
|
||||
- dispListType = "ol"
|
||||
|
||||
#{dispListType}.list
|
||||
each item in items
|
||||
li
|
||||
#{tag} #{item}
|
||||
|
||||
// Вызов миксина
|
||||
+createList('ul', ['Python', 'JavaScript', 'Java'], 'strong')
|
||||
Reference in New Issue
Block a user