Skip to content

🌮 Static Site lightweight generator with easy syntax

License

Notifications You must be signed in to change notification settings

yisusjuarez/tacos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌮 Tacos Static Site Generator

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.

Features

  • Dynamic Compilation: Automatically compiles .taco files 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 .taco files.

Installation

To install the dependencies, run:

npm install

Usage

Development

To start the development server with live reloading, run:

npm run dev

This will start an Express server and BrowserSync for live reloading. The server will dynamically compile the .taco files and serve the generated HTML.

Build

To generate a production build, run:

npm run build

This will compile the .taco files and output the static HTML files to the dist directory.

Example

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>

License

This project is licensed under the MIT License.

About

🌮 Static Site lightweight generator with easy syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published