1.0.2 • Published 4 years ago
htbuild v1.0.2
htBuild
Easy to use static site generator
What is htBuild ?
htBuild is an easy to use static site generator written in JavaScript. It lets you use variables and components in static site in very easy method. No need to learn very complex framework and
Installing htBuild
- Install Nodejs from here
- Open cmd / terminal and enter below command
npm install htbuild
Syntax
Defining Component
File Path : Components/navbar.html
<nav>
<ul>
<li>Home</li>
<li>About</li>
<li>Contact</li>
</ul>
</nav>
Using Component
<html>
<head>
<title>htBuild Demo</title>
</head>
<body>
<ht_component data-component="/navbar">
</body>
</html>
Defining & Using Variable
<html>
<head>
<title>htBuild Demo</title>
</head>
<body>
<ht_variable data-var"name" data-val="Akash">
<p>Hello everyone my name is {{name}}, I developed htBuild</p>
<footer>
Designed & Developed by {{name}}
</footer>
</body>
</html>