This commit is contained in:
MishaBagger
2023-10-25 09:15:21 +03:00
commit b6c10cc93f
9828 changed files with 1446743 additions and 0 deletions

23
32/views/contact.ejs Normal file
View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title><%=title %></title>
<meta charset="utf-8" />
</head>
<body>
<h1><%=title %> в EJS</h1>
<% if(emailsVisible) {%>
<h3>Электронные адреса</h3>
<ul>
<% for(var i=0; i<emails.length;i++) {%>
<li><%=emails[i] %></li>
<%} %>
</ul>
<% }else {%>
<h3>Электронный адрес отсутствует</h3>
<%} %>
<p>Телефон: <%=phone %></p>
</body>
<html>

3
32/views/contact.hbs Normal file
View File

@@ -0,0 +1,3 @@
<h1>{{title}}</h1>
<p>Электронный адрес: {{email}}</p>
<p>Телефон: {{phone}}</p>

10
32/views/home.hbs Normal file
View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>{{title}}</title>
<meta charset="utf-8" />
</head>
<body>
<h1>Главная страница</h1>
</body>
<html>

14
32/views/layout.hbs Normal file
View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>{{title}}</title>
<meta charset="utf-8" />
</head>
<body>
{{> menu}}
{{{body}}}
{{> footer}}
</body>
<html>

View File

@@ -0,0 +1 @@
<footer><p>MyCorp - Copyright © 2017</p></footer>

View File

@@ -0,0 +1 @@
<footer><p>MyCorp - Copyright © 2017</p></footer>

View File

@@ -0,0 +1,4 @@
<nav>
<a href="/">Главная</a> |
<a href="/contact">Контакты</a>
</nav>

View File

@@ -0,0 +1,4 @@
<nav>
<a href="/">Главная</a> |
<a href="/contact">Контакты</a>
</nav>