0.2.1 • Published 9 months ago
grug-components v0.2.1
\<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