Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Commit 7595f4e

Browse files
author
ssidorenkoJustcoded
committed
readme and project example updated
1 parent a767d02 commit 7595f4e

File tree

8 files changed

+30
-19
lines changed

8 files changed

+30
-19
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ This is not to say that Web Starter Kit cannot be used in browsers older than th
4646
| Performance optimization | Minify and concatenate JavaScript, CSS, HTML and images to help keep your pages lean (Run `gulp` to create an optimised version of your project to `/assets`). |
4747
| Code Linting | JavaScript code linting is done using [esLint](https://www.npmjs.com/package/gulp-eslint) - a linter tool for identifying and reporting on patterns in JavaScript (used airbnb-base rules https://www.npmjs.com/package/eslint-config-airbnb-base). HTML code hinting is done using [HtmlHint](https://www.npmjs.com/package/gulp-htmlhint). |
4848
| ES2015(ES6) Support | Optional ES2015 support .You can use all kind of ES6 features here. ES2015 source code will be automatically transpiled to ES5 for wide browser support. |
49+
| HTML templating | Used [gulp-file-include](https://www.npmjs.com/package/gulp-file-include) for templating html files. |
4950
| Built-in HTTP Server | A built-in server for previewing your site locally while you develop and iterate. |
5051
| Live Browser Reloading | Reload the browser in real-time anytime an edit is made without the need for an extension (Run `gulp` and edit your files). |
5152
| Cross-device Synchronization | Synchronize clicks, scrolls, forms and live-reload across multiple devices as you edit your project. Powered by [BrowserSync](http://browsersync.io) (Run `gulp` and open up the IP provided on other devices on your network). |
@@ -179,6 +180,9 @@ In `src` folder you can find all sources for the project (images, sass , javascr
179180
## `src` folder structure
180181

181182
```
183+
├── html
184+
├── partials #Folder for html components, that we can include into the templates
185+
├── templates #Folder for source html templates of pages
182186
├── images #Folder for storing images
183187
├── js #Folder for storing js files
184188
├── modules #Folder for storing js modules
@@ -273,6 +277,7 @@ Also, you might want to add these sass files to the ignore list (check `getPathe
273277
| build-styles-vendors | Compiles and minifies all plugins scss from `src/vendor_entries` to `production` folder. |
274278
| clean-production | `production` folder removing. |
275279
| copy-folders | Need to copy all folders from sources to assets. |
280+
| file-include | Compiles all html templates into html files. |
276281
| templates | Compiles all pug files into html files. |
277282
| html-hint | Need to hint html files. |
278283
| es-lint | Need to lint js files. |

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!DOCTYPE html>
33
<html lang="en">
44

5-
<head>
5+
<head>
66
<meta charset="utf-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
88
<title>Web Starter Kit</title>
@@ -13,8 +13,9 @@
1313
<body>
1414
<div id="wrapper">
1515
<div class="entry-section">
16-
<div id="home-canvas"></div>
17-
</div>
16+
<div id="home-canvas"></div>
17+
</div>
18+
1819
<section class="starter-box">
1920
<h1>JustCoded</h1>
2021
<p>Web Starter Kit</p>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="entry-section">
2+
<div id="home-canvas"></div>
3+
</div>

src/html/partials/components/home-canvas.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/html/partials/components/sections/starter-box.html

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<section class="starter-box">
2+
<h1>@@title</h1>
3+
<p>@@intro-text</p>
4+
</section>

src/html/partials/head/head.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4+
<title>Web Starter Kit</title>
5+
<link media="all" rel="stylesheet" href="assets/css/vendor.min.css">
6+
<link media="all" rel="stylesheet" href="assets/css/style.min.css">
7+
</head>

src/html/templates/index.html

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@
22
<!DOCTYPE html>
33
<html lang="en">
44

5-
<head>
6-
<meta charset="utf-8">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<title>Web Starter Kit</title>
9-
<link media="all" rel="stylesheet" href="assets/css/vendor.min.css">
10-
<link media="all" rel="stylesheet" href="assets/css/style.min.css">
11-
</head>
5+
@@include('../partials/head/head.html')
126

137
<body>
148
<div id="wrapper">
15-
<div class="entry-section">
16-
@@include('../partials/components/home-canvas.html')
17-
</div>
18-
@@include('../partials/components/sections/starter-box.html')
9+
@@include('../partials/components/entry-section.html')
10+
11+
@@include('../partials/components/starter-box.html', {
12+
"title": "JustCoded",
13+
"intro-text": "Web Starter Kit"
14+
})
1915
</div>
2016
<script src="assets/js/vendor.min.js" defer></script>
2117
<script src="assets/js/app.js" defer></script>

0 commit comments

Comments
 (0)