Skip to content

code satic html pages without repeating yourself

License

Notifications You must be signed in to change notification settings

NGcodeX/H5assembler

 
 

Repository files navigation

H5 Assembler

its made for all web developer who doesn't like to write the same code in different file which his currency : don't repeat yourself
you will never need to rewrite the same text again

state

the H5A repository is on github the current version is the 1.0.2

building

  1. on window

if you want to build H5assembler on window

  • download msys64

  • download mingw64 or mingw32 toolchains

  • download flex , bison and make in msys64 type

pacman -S flex
pacman -S bison
pacman -S make

-run the make command throw msys shell in the project directory make

  1. on linux debian

if you want to build H5assembler on window

  • download flex , bison and make in msys64 type
sudo apt-get update 
sudo apt install make
sudo apt-get install flex bison

-run the make command make debian

exemple of use

h5assembler offers you a technology allowing you to reduce your html code and guarantees you an easy integration in frameworks such as (laravel, django)

navbar.html

<nav>
    <a href="">mikle</a>
    <a href="">jordan</a>
    <a href="">taba</a>
</nav>

index.html

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
    
    <title>simple include H5assembler</title>
</head>
<body>
@include("navbar.html")

</body>
</html>

in in the same directory than index.html run command H5A index.html output.html. this command will generate an output.html file with the following content output.html

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
    
    <title>simple include H5assembler</title>
</head>
<body>
<nav>
    <a href="">mikle</a>
    <a href="">jordan</a>
    <a href="">taba</a>
</nav>

</body>
</html>

for more information about h5 using read the documentation

About

code satic html pages without repeating yourself

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Yacc 38.1%
  • C++ 31.1%
  • Lex 15.6%
  • HTML 12.6%
  • Makefile 2.6%