0.2.1 • Published 9 months ago

grug-components v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

\<grug/> Grug Components

Simple reusable components for the grug brained developer.

A preprocessor that uses HTML all the way down. No JSX, no objects, no extra languages; just HTML.

The simplest example

// components/greeting.html
<div>Hello, {name}</div>
// src/index.html
<!DOCTYPE html>
<html>

  <head></head>

  <body>
    <greeting name="Alice" />
  </body>

</html>
// build/index.html
<!DOCTYPE html>
<html>

  <head></head>

  <body>
    <div>Hello, Alice</div>
  </body>

</html>

Usage

npm i -D grug-components
npx grug_components
0.2.1

9 months ago

0.2.0

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago