Skip to content

Commit b50794f

Browse files
author
gitanon
committed
HTML to Pug
1 parent b6efbc6 commit b50794f

10 files changed

+32
-39
lines changed

_includes/html/attribute-order.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
<a class="..." id="..." data-modal="toggle" href="#">
2-
Какая-то ссылка
3-
</a>
1+
a(class="..." id="..." data-modal="toggle" href="#") Какая-то ссылка
42

5-
<input class="form-control" type="text">
3+
input(class="form-control" type="text")
64

7-
<img src="..." alt="...">
5+
img(src="http://github.com/..." alt="...")
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
<input type="text" disabled>
1+
input(type="text" disabled)
22

3-
<input type="checkbox" value="1" checked>
3+
input(type="checkbox" value="1" checked)
44

5-
<select>
6-
<option value="1" selected>1</option>
7-
</select>
5+
select
6+
option(value="1" selected) 1

_includes/html/doctype.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
<!DOCTYPE html>
2-
<html>
3-
<head>
4-
</head>
5-
</html>
2+
html
3+
head

_includes/html/encoding.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<head>
2-
<meta charset="UTF-8">
3-
</head>
1+
head
2+
meta(charset="UTF-8")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
1+
meta(http-equiv="X-UA-Compatible" content="IE=Edge")

_includes/html/lang.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
<html lang="en-us">
2-
<!-- ... -->
3-
</html>
1+
html(lang="en-us")

_includes/html/reducing-markup.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!-- Неплохо -->
2-
<span class="avatar">
3-
<img src="...">
4-
</span>
2+
span(class="avatar")
3+
img(src="...")
54

65
<!-- Лучше -->
7-
<img class="avatar" src="...">
6+
img(class="avatar" src="http://github.com/...")

_includes/html/style-script.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<!-- Внешний CSS -->
2-
<link rel="stylesheet" href="code-guide.css">
2+
link(rel="stylesheet", href="http://github.com/%3Cspan%20class="x x-first x-last">css/main.css")
33

44
<!-- CSS внутри документа -->
5-
<style>
5+
style
66
/* ... */
7-
</style>
87

98
<!-- JavaScript -->
10-
<script src="code-guide.js"></script>
9+
script(src="http://github.com/%3Cspan%20class="x x-first x-last">js/main.js")

_includes/html/syntax.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<!DOCTYPE html>
2-
<html>
3-
<head>
4-
<title>Заголовок страницы</title>
5-
</head>
6-
<body>
7-
<img src="images/company-logo.png" alt="Company">
8-
<h1 class="hello-world">Привет, мир!</h1>
9-
</body>
10-
</html>
2+
html(lang="en-us")
3+
head
4+
meta(charset="UTF-8")
5+
meta(http-equiv="X-UA-Compatible" content="IE=Edge")
6+
meta(name="viewport" content="width=device-width,initial-scale=1")
7+
title Title page
8+
link(rel="stylesheet", href="css/main.css")
9+
body.page
10+
include blocks/header/header.pug
11+
...
12+
include blocks/text/text.pug
13+
script(src="js/main.js")

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h3>Настройки редактора кода</h3>
7070
</div>
7171

7272
<div class="heading" id="html">
73-
<h2>HTML</h2>
73+
<h2><a href="http://jade-lang.com/">Jade</a></h2>
7474
</div>
7575

7676
<div class="section" id="html-syntax">

0 commit comments

Comments
 (0)