Taco is a simple Static Site Generator (SSG) that allows you to create static HTML pages from custom .taco files. It supports dynamic compilation and live reloading during development, making it easy to build and preview your static sites.
- Dynamic Compilation: Automatically compiles
.tacofiles into HTML. - Live Reloading: Uses BrowserSync to reload the browser when files change.
- SEO Optimization: Supports metadata tags for better SEO.
- Custom Tags: Easily define and use custom tags in your
.tacofiles.
To install the dependencies, run:
npm installTo start the development server with live reloading, run:
npm run devThis will start an Express server and BrowserSync for live reloading. The server will dynamically compile the .taco files and serve the generated HTML.
To generate a production build, run:
npm run buildThis will compile the .taco files and output the static HTML files to the dist directory.
Here is an example of a .taco file:
page[title: "Mi Landing Taco", description: "Ejemplo de Tacos para SEO", url: "https://mi-sitio.com"]
h1[class="w-10", id="title"] Bienvenido a nuestra página creada con tacos
This will generate the following HTML:
<!DOCTYPE html>
<html lang="es">
<head>
<title>Mi Landing Taco</title>
<meta name="description" content="Ejemplo de Tacos para SEO">
<meta property="og:url" content="https://mi-sitio.com">
</head>
<body>
<h1>Bienvenido a nuestra página creada con tacos</h1>
</body>
</html>This project is licensed under the MIT License.